]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 18:48:40 +0000 (20:48 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 18:48:40 +0000 (20:48 +0200)
commited9c0c3cbe9505eca07f2cb6fb38bed63a56b359
treefeb3f087f2531b2ac0d26e6f78d60a5ac9b44bc2
parent137c784fbfdd7efe4b8a9269c97c44f696a10757
[3.14] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (#137993)

gh-137477: Fix inspect.getblock() for generator expressions (GH-137488)

This fixes also inspect.getsourcelines() and inspect.getsource().
(cherry picked from commit eae9d7de1c45a64076a926d53672823e6ae1777d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/inspect.py
Lib/test/test_inspect/inspect_fodder2.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Library/2025-08-06-23-16-42.gh-issue-137477.bk6BDV.rst [new file with mode: 0644]