]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-103488: Use return-offset, not yield-offset. (GH-103502)
authorMark Shannon <mark@hotpy.org>
Thu, 13 Apr 2023 15:19:07 +0000 (16:19 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2023 15:19:07 +0000 (16:19 +0100)
commitefb8a2553c88a295514be228c44fb99ef035e3fa
treed8318deba8f8d98ce99751dcfabec6f44b5d053e
parent4307feaddc76b9e93cd38e325a1f0ee59d593093
GH-103488: Use return-offset, not yield-offset. (GH-103502)

* Use return-offset, not yield-offset, so that instruction pointer is correct when sending to a generator or coroutine.
Include/internal/pycore_frame.h
Lib/test/test_generators.py
Misc/NEWS.d/next/Core and Builtins/2023-04-12-20-18-51.gh-issue-103488.vYvlHD.rst [new file with mode: 0644]
Python/bytecodes.c
Python/ceval.c
Python/generated_cases.c.h