This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients arigo
Date 2016-08-20.09:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471685705.62.0.520066392301.issue27811@psf.upfronthosting.co.za>
In-reply-to
Content
_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).
History
Date User Action Args
2016-08-20 09:35:05arigosetrecipients: + arigo
2016-08-20 09:35:05arigosetmessageid: <1471685705.62.0.520066392301.issue27811@psf.upfronthosting.co.za>
2016-08-20 09:35:05arigolinkissue27811 messages
2016-08-20 09:35:05arigocreate