[Python-3000] Removing 'self' from method definitions

Barry Warsaw barry at python.org
Thu Apr 13 21:04:20 CEST 2006


-1 on removing self from method defs.  I always make the opposite
mistake from Ian when moving from Python to C++ or Java. :)

On Thu, 2006-04-13 at 12:59 -0500, Ian Bicking wrote:

> My own interpretation of self-related criticism is that people get 
> bothered with all the "self"s from their experience with other 
> languages, but the self in the signature (and the miscount of arguments 
> in TypeError exceptions) 

I'd rather fix this nit than remove self.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-3000/attachments/20060413/a2428816/attachment.pgp 


More information about the Python-3000 mailing list