I have a patch for this now -- python.org/sf/1445739. Please review. --Guido On 3/3/06, Guido van Rossum <guido at python.org> wrote: > A few days ago there were rumbling noises that requiring __exit__ to > re-raise the exception (as I amended PEP 343 at the time) could lead > to easily-missed bugs in __exit__ handlers. > > After thinking it over I think I agree and I think I'd like to change > the API so that the exception is only ignored if __exit__ returns a > "true" value. > > The easiest implementation is probably to just let the WITH_CLEANUP > opcode do everything. This becomes a rather heavy opcode then but the > alternative is to generate very hairy code (like the original patch > did, full of ROT 4 choruses). > > Any objections? I probably won't get to this until Monday. > > -- > --Guido van Rossum (home page: http://www.python.org/~guido/) > -- --Guido van Rossum (home page: http://www.python.org/~guido/)
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