]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Dec 2023 12:59:33 +0000 (14:59 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2023 12:59:33 +0000 (12:59 +0000)
commitd4234937a1de4cc2cb5d54dd2163721d62cf68d6
treeaa048fb1db0773665bed031f00f5864eecb80772
parent08ff6fa23deb748c141e2f5c1cfdfbc63e2eb287
[3.11] gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770) (GH-113105)

It was raised in two cases:
* in the import statement when looking up __import__
* in pickling some builtin type when looking up built-ins iter, getattr, etc.

(cherry picked from commit 1161c14e8c68296fc465cd48970b32be9bee012e)
Lib/test/test_builtin.py
Misc/NEWS.d/next/Core and Builtins/2023-12-05-20-41-58.gh-issue-112716.hOcx0Y.rst [new file with mode: 0644]
Python/ceval.c