Nick Coghlan wrote: > Wouldn't that mean we run the risk of suppressing a *real* SystemExit if it > occurs while a generator is being finalised? > > Perhaps a new exception IteratorExit, which is a subclass of SystemExit. Then > well-behaved code wouldn't trap it accidentally, and the finalisation code wouldn't? ... inadvertently suppress a real SystemExit. Cheers, Nick. Must have been distracted halfway through that sentence :) -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.blogspot.com
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