'with' statement in python ?

Jeff Sandys sandysj at asme.org
Tue Jun 26 01:26:47 CEST 2001

Gerhard Häring wrote:
> asgard wrote:
> > writing self before every object's method really drives me crazy.
> > self.a = 1
> You can use any name instead of self, some people use simply "s", for example.

self drives me nuts too, but I learned to use it after trying "my" and
I kind of liked underscore, the blank, insert name here idea, but it is
to verbally communicate.  self is easy to communicate and well

my.a = 1
_.a = 1

Jeff Sandys

More information about the Python-list mailing list