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 Mark.Shannon
Recipients Mark.Shannon
Date 2022-01-17.11:54:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642420475.96.0.0360336928035.issue46409@roundup.psfhosted.org>
In-reply-to
Content
(including coroutines, and async generators)

We now make the start and resumption of Python functions explicit in the bytecode which allows us to initialize frames in the bytecode without exposing incomplete frames tracing, the GC etc.
However, we still expose incomplete frames when creating generators.

By making the creation of generators explicit in the bytecode we first create the frame, then the generator and all is well.

See https://bugs.python.org/issue46374 and https://bugs.python.org/issue46389 for examples.
History
Date User Action Args
2022-01-17 11:54:36Mark.Shannonsetrecipients: + Mark.Shannon
2022-01-17 11:54:35Mark.Shannonsetmessageid: <1642420475.96.0.0360336928035.issue46409@roundup.psfhosted.org>
2022-01-17 11:54:35Mark.Shannonlinkissue46409 messages
2022-01-17 11:54:35Mark.Shannoncreate