A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063362.html below:

[Python-Dev] SF #1462485 - StopIteration raised in body of 'with' statement suppressed

[Python-Dev] SF #1462485 - StopIteration raised in body of 'with' statement suppressed [Python-Dev] SF #1462485 - StopIteration raised in body of 'with' statement suppressedDelaney, Timothy (Tim) tdelaney at avaya.com
Tue Apr 4 00:32:43 CEST 2006
Guido van Rossum wrote:

>> I can't confirm right now (at work, need to install 2.5) but I'm also
>> wondering what will happen if KeyboardInterrupt or SystemExit is
>> raised from inside the generator when it's being closed via
>> __exit__. I suspect a RuntimeError will be raised, whereas I think
>> these should pass through.
> 
> I see no reason for this with the current code. Perhaps a previous
> version of contextlib.py had this problem?

Nah - that was me mis-remembering the contextlib code. They're handled
properly.

Tim Delaney
More information about the Python-Dev mailing list

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