[issue27811] _PyGen_Finalize() should not fail with an exception
Armin Rigo
report at bugs.python.org
Sat Aug 20 05:35:05 EDT 2016
New submission from Armin Rigo:
_PyGen_Finalize() should not fail with an exception. Doing so can cause various SystemErrors or even fatal errors. For example, run this with "python -Werror":
import gc
async def f():
pass
f()
gc.collect() # RuntimeWarning, but with -Werror
Patch attached. Test missing (turn the above example in a test; also I didn't re-run all tests with this patch).
----------
files: patch1.diff
keywords: needs review, patch
messages: 273199
nosy: arigo
priority: normal
severity: normal
status: open
title: _PyGen_Finalize() should not fail with an exception
versions: Python 3.6
Added file: http://bugs.python.org/file44165/patch1.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27811>
_______________________________________
More information about the Python-bugs-list
mailing list