[New-bugs-announce] [issue44566] StopIteration subclass raised in body of 'with' statement suppressed
Thomas Grainger
report at bugs.python.org
Mon Jul 5 05:45:40 EDT 2021
New submission from Thomas Grainger <tagrain at gmail.com>:
https://bugs.python.org/issue1462485
import contextlib
@contextlib.contextmanager
def foo():
yield
class StartIrritation(StopIteration):
pass
with foo():
raise StartIrritation
----------
messages: 396979
nosy: graingert, ncoghlan, yselivanov
priority: normal
severity: normal
status: open
title: StopIteration subclass raised in body of 'with' statement suppressed
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44566>
_______________________________________
More information about the New-bugs-announce
mailing list