]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 20 Aug 2025 13:43:28 +0000 (16:43 +0300)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 13:43:28 +0000 (13:43 +0000)
commitc04b3de517720ea6e8a6d8ae6e1fadb9bed43895
treeea6442eaf91a6ff0e3bc31675fc10280d27508f8
parent47b1c5d74efffbfc72799a83ad7f7d97635340f6
[3.13] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (GH-137995)

This fixes also inspect.getsourcelines() and inspect.getsource().
(cherry picked from commit eae9d7de1c45a64076a926d53672823e6ae1777d)
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]