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: Roy Smith <roy@panix.com>
Date: Thu May 26 2005 - 17:54:33 CEST

bruno modulix <onurb@xiludom.gro> wrote:
> I've always explicitelly used the (implied) 'this' pseudo-pointer in
> Java, C++ etc. The wart is in all those languages that don't makes it
> mandatory IMHO !-)

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.
Received on Thu Sep 29 16:14:24 2005