]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Dec 2023 12:54:25 +0000 (14:54 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2023 12:54:25 +0000 (12:54 +0000)
commit59a22d3e50be0900a74fb7a398c3622e2a43b11e
tree0f1b5dfc0ecc4a431a4fd64203caed84b71bf7c3
parent913051d2a00eaa98c35fe06675e40acd6d87393f
[3.12] gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770) (GH-113103)

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