Python complaints

Terry Reedy tjreedy at udel.edu
Wed Nov 24 00:15:55 EST 1999


In article <383979F7.25D6 at cs.bham.ac.uk>, S.I.Reynolds at cs.bham.ac.uk 
says...

>Oh yeah! I'd I disklike writing 'self.' eveywhere. Some kind of
>shorthand would be nice. e.g. I'd be nice to write:
>  .x.f()
>instead of:
>  self.x.f()

You are currently welcome to save 3 keystrokes (rather than 4)
by naming the method parameter 's' instead of 'self'.  The latter
is just a convention that many people use -- at least for public
consumption.

TJR





More information about the Python-list mailing list