__init__() not called automatically

Simon Brunning simon.brunning at gmail.com
Fri May 27 09:40:11 EDT 2005


On 26 May 2005 11:54:33 -0400, Roy Smith <roy at panix.com> wrote:
> And the correlary wart in Python is that the first argument to a
> method is not required to be called "self".  The vast majority of
> people use "self", but every once in a great while you run into some
> yahoo who feels this is the right place to express his creativity and
> call it "this", or "obj", or some other obfuscation.

To be fair, it's easy to use 'this' by accident if you've recently
been working with Java. I've done it myself. It takes me an hour or to
reset my brain, and for a short while, there are bloody 'this'es,
braces and semi-colons everywhere.

Sanity soon returns, though.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list