Hide
Meet people who work on similar things as you – get help if you need it Join Siafoo Now or Learn More

Python __Underscore__ Methods - Recent Activity Subscribe

Show: Turn New Off Turn Edits Off Turn Ratings Off Turn Comments Off
07 April 2012 1
Edit gordonsross edited the article “Python __Underscore__ Methods
7 April 2012 at 04:55 AM
09 February 2010 1
Edit gordonsross edited the article “Python __Underscore__ Methods
9 February 2010 at 09:30 PM
" Added some keywords. " diff
03 July 2008 1 2 6
Edit gordonsross edited the article “Python __Underscore__ Methods
3 July 2008 at 03:39 AM
" fix typo (__neg__ ==> __pos__) " diff
Article “Python __Underscore__ Methods” was voted up.
3 July 2008 at 01:37 AM
The new rating is +1. rate
Comment David Isaacson replied to a comment on the article “Python __Underscore__ Methods
3 July 2008 at 01:33 AM
" That's actually true... but that's assuming you have a superclass. Perhaps I should have been clearer, but when I say 'if not present' I mean 'if not present anywhere in the class hierarchy' " reply
Comment David Isaacson replied to a comment on the article “Python __Underscore__ Methods
3 July 2008 at 01:32 AM
" That's only for new-style classes actually. I haven't written about __new__ yet, I'll add that part later. Or feel free to. " reply
Comment Stou S. replied to a comment on the article “Python __Underscore__ Methods
3 July 2008 at 01:30 AM
" You know you can just edit the thing... " reply
Article “Python __Underscore__ Methods” was voted down.
3 July 2008 at 01:12 AM
The new rating is +1. rate
Comment harry_hill commented on the article “Python __Underscore__ Methods
3 July 2008 at 01:12 AM
" Still in first section(!!!):"If not present, nothing is called and life goes on."NOOOO!!!!!If not present, an implicit call to the superclass's __init__ method is made.I didn't get beyond the first... more " reply
Comment harry_hill commented on the article “Python __Underscore__ Methods
3 July 2008 at 01:10 AM
" x.__init__(...) <!=> Class(...)- WHAT!? NO!!! Object instantiation implies a call to __new__ to do resource allocation. __init__ only sets initial state!Why did you write this if you have NO... more " reply
Comment harry_hill commented on the article “Python __Underscore__ Methods
3 July 2008 at 01:09 AM
" FAIL on 1st line!Class.__init__(...) <==> x.__init__(...)- NO!!! Calling a method on an instance passes self as an implicit first parameter. " reply
01 July 2008 1
Edit gordonsross edited the article “Python __Underscore__ Methods
1 July 2008 at 04:19 PM
" Added some more methods to the ideas section " diff
28 June 2008 1
Edit gordonsross edited the article “Python __Underscore__ Methods
28 June 2008 at 04:09 PM
26 June 2008 1
Edit gordonsross edited the article “Python __Underscore__ Methods
26 June 2008 at 03:23 PM
" A few more methods defined, clarified and expanded on comparison operators " diff
25 June 2008 2
Edit gordonsross edited the article “Python __Underscore__ Methods
25 June 2008 at 01:54 AM
" More minor hash updates " diff
Edit gordonsross edited the article “Python __Underscore__ Methods
25 June 2008 at 01:51 AM
" Updates to __hash__ " diff
24 June 2008 3 1
Article “Python __Underscore__ Methods” was voted up.
24 June 2008 at 10:42 PM
The new rating is +1. rate
Edit gordonsross edited the article “Python __Underscore__ Methods
24 June 2008 at 10:42 PM
" Fixed reST error " diff
Edit gordonsross edited the article “Python __Underscore__ Methods
24 June 2008 at 06:43 PM
" Added TOC, pickling infos " diff
Edit gordonsross edited the article “Python __Underscore__ Methods
24 June 2008 at 02:54 AM
" Added some info on descriptors, cleaned up the intro " diff
18 June 2008 1
Edit gordonsross edited the article “Python __Underscore__ Methods
18 June 2008 at 10:20 PM
" Ultra minor syntax error " diff
David Isaacson posted the article “Python __Underscore__ Methods
18 June 2008 at 10:04 PM
Need to override an operator in your Python class? Ever wonder what all those double-underscore class methods do? Here's your answer. Note that this is a work in progress, feel free to add to it... more