]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137477: Fix inspect.getblock() for generator expressions (GH-137488)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 20 Aug 2025 13:18:08 +0000 (16:18 +0300)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 13:18:08 +0000 (16:18 +0300)
commiteae9d7de1c45a64076a926d53672823e6ae1777d
tree8f32455ca055a2294d4f2dd5f0dda25f72119bf1
parent7685b8ada84822a7ee9ce51e8ee0e2e35fd60b4e
gh-137477: Fix inspect.getblock() for generator expressions (GH-137488)

This fixes also inspect.getsourcelines() and inspect.getsource().
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]