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 Dennis Sweeney
Recipients Dennis Sweeney, Mark.Shannon, asvetlov, terry.reedy, xxm, yselivanov
Date 2021-11-30.00:47:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638233265.61.0.194912922643.issue45813@roundup.psfhosted.org>
In-reply-to
Content
I think the PR fixed one case, but the other case (when coro is kept around) still fails an assertion:

Python 3.11.0a2+ (heads/main:734ed35383, Nov 29 2021, 19:29:25) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> async def f(): pass
...
>>> coro = f()
>>> frame = coro.cr_frame
>>> frame.clear()
<stdin>:1: RuntimeWarning: coroutine 'f' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Assertion failed: f->f_frame->generator == NULL, file C:\Users\sween\Source\Repos\cpython2\multiply\Objects\frameobject.c, line 689

Perhaps there should be some sort of backport as well?
History
Date User Action Args
2021-11-30 00:47:45Dennis Sweeneysetrecipients: + Dennis Sweeney, terry.reedy, asvetlov, Mark.Shannon, yselivanov, xxm
2021-11-30 00:47:45Dennis Sweeneysetmessageid: <1638233265.61.0.194912922643.issue45813@roundup.psfhosted.org>
2021-11-30 00:47:45Dennis Sweeneylinkissue45813 messages
2021-11-30 00:47:45Dennis Sweeneycreate