Message407345
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? |
|
Date |
User |
Action |
Args |
2021-11-30 00:47:45 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney, terry.reedy, asvetlov, Mark.Shannon, yselivanov, xxm |
2021-11-30 00:47:45 | Dennis Sweeney | set | messageid: <1638233265.61.0.194912922643.issue45813@roundup.psfhosted.org> |
2021-11-30 00:47:45 | Dennis Sweeney | link | issue45813 messages |
2021-11-30 00:47:45 | Dennis Sweeney | create | |
|