'with' statement in python ?
Steve Holden
sholden at holdenweb.com
Thu Jun 28 22:13:40 EDT 2001
"Carlos Ribeiro" <cribeiro at mail.inet.com.br> wrote in ...
> At 21:50 25/06/01 +0000, Mark Hadfield wrote:
> >From: "asgard" <asgard at hellnet.cz>
> >
> >
> > > Hello,
> > > writing self before every object's method really drives me
> > > crazy. Shouldn't there be 'with' statement like in Pascal, ie.
> >
> >There was an extensive discussion on this recently. Perhaps you'd like to
> >try a search on Google Groups. IIRC the consensus was that adding this to
> >Python would not be a good idea, because when "with" blocks are nested
they
> >become hard to read and possibly ambiguous.
>
> I'll repeat the same argument that I gave some time ago. Maybe it's a good
> answer for this FAQ :-)
>
[ ... ]
The reappearance of the FAQ wizard allowed me to enter:
6.31. Why doesn't Python have a "with" statement like Delphi's Object
Pascal?
Thanks for your words, Carlos.
regards
Steve
--
http://www.holdenweb.com/
More information about the Python-list
mailing list