[Python-Dev] PEP 340: Breaking out.
Nick Coghlan
ncoghlan at gmail.com
Thu May 5 12:44:25 CEST 2005
Steven Bethard wrote:
> Makes me wonder if we shouldn't just return to the __enter__() and
> __exit__() names of PEP 310[1] where for a generator __enter__() is
> just an alias for next(). We could even require Phillip J. Eby's
> "blockgenerator" decorator to rename next() to __enter__(), and add
> the appropriate __exit__() method.
You must be reading my mind or something. . .
Unless there is something in today's 80-odd messages to make it redundant, look
for a post entitled something like "Minimalist PEP 340 (aka PEP 310 redux)"
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
More information about the Python-Dev
mailing list