'with' statement in python ?
Jeff Sandys
sandysj at asme.org
Mon Jun 25 19:26:47 EDT 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
hard
to verbally communicate. self is easy to communicate and well
understood.
my.a = 1
_.a = 1
Thanks,
Jeff Sandys
More information about the Python-list
mailing list