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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27811>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to