shortcut for 'self' wish

Terry Reedy tjreedy at udel.edu
Fri Mar 2 22:15:50 EST 2001


"Costas Menico" <costas at meezon.com> wrote in message
news:3aa050ad.35416419 at News.CIS.DFN.DE...
> It would be nice if there was someway to cut down on the typing of
> self.something inside def methods.

This is entirely a social convention for publicly displayed code.  For my
own work, I use s for self (and o for other in __add__(), etc.).  Python is
not a straightjacket.





More information about the Python-list mailing list