Re: __init__() not called automatically
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: __init__() not called automatically

From: Simon Brunning <simon.brunning@gmail.com>
Date: Fri May 27 2005 - 15:40:11 CEST

On 26 May 2005 11:54:33 -0400, Roy Smith <roy@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@brunningonline.net,
http://www.brunningonline.net/simon/blog/
Received on Thu Sep 29 16:14:59 2005