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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4