File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,37 @@ History/Changelog
1414
1515 - is_active() and active return the same value
1616
17+ - Some objects now have ``__str__ `` methods. You can now do things like:
18+
19+ ::
20+
21+ import github3
22+ u = github3.user('sigmavirus24')
23+ r = github3.repository(u, 'github3.py')
24+
25+ And
26+
27+ ::
28+
29+ import github3
30+
31+ r = github3.repository('sigmavirus24', 'github3.py')
32+
33+ template = """Some kind of template where you mention this repository
34+ {0}"""
35+
36+ print(template.format(r))
37+ # Some kind of template where you mention this repository
38+ # sigmavirus24/github3.py
39+
40+ Current list of objects with this feature:
41+
42+ - github3.users.User (uses the login name)
43+ - github3.users.Key (uses the key text)
44+ - github3.users.Repository (uses the login/name pair)
45+ - github3.users.RepoTag (uses the tag name)
46+ - github3.users.Contents (uses the decoded content)
47+
17480.2: 2012-11-21
1849---------------
1950
@@ -44,7 +75,7 @@ History/Changelog
4475- Handle sending json with `% ` symbols better, courtesy of Kristian Glass
4576- Correctly handle non-GitHub committers and authors courtesy of Paul Swartz
4677 (@paulswartz)
47- - Correctly display method signatures in documentatio
78+ - Correctly display method signatures in documentation courtesy of (@seveas)
4879
49800.1b1: 2012-10-31
5081-----------------
Original file line number Diff line number Diff line change 1313__author__ = 'Ian Cordasco'
1414__license__ = 'Modified BSD'
1515__copyright__ = 'Copyright 2012 Ian Cordasco'
16- __version__ = '0.3.dev '
16+ __version__ = '0.3.b '
1717
1818from github3 .api import *
1919from github3 .github import GitHub
You can’t perform that action at this time.
0 commit comments