Browse
›
Articles
›
Python __Underscore__ Methods
›
History
›
Revision 12 vs. Revision 13
Take Control – Choose how to license your stuff and who can edit it, track every change
Join Siafoo Now
or
Learn More
Python __Underscore__ Methods
Revision 12 vs. Revision 13
Legend:
- Unmodified
- Added
- Removed
-
Content
r12
|
r13
|
|
11 | 11 | Anyways feel free to add, don't worry about messing stuff up, I can always revert your edits if I really hate them ; ) A list of underscore methods that I haven't written about yet is at the bottom; there might be more too that I don't know about. And things I'm not sure about have question marks next to them, feel free to search for question marks and correct any uncertainties.
|
12 | 12 |
|
13 | 13 |
|
14 | 14 | Class and Instance Methods
|
15 | 15 | ==========================
|
16 | | For consistancy's sake, let's say we have a class called 'Class', instances called 'x' and 'y'. Keeping with the Python docstrings, '<==>' can be read as 'is equivalent to'.
|
| 16 | For consistency's sake, let's say we have a class called 'Class', instances called 'x' and 'y'. Keeping with the Python docstrings, '<==>' can be read as 'is equivalent to'.
|
17 | 17 |
|
18 | 18 | Creation, Calling, and Destruction
|
19 | 19 | ----------------------------------
|
20 | 20 | | ``__init__(self, ...)``
|
21 | 21 | | ``Class.__init__(...)`` <==> ``x.__init__(...)`` <==> ``Class(...)``
|