]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 14 Dec 2023 12:24:24 +0000 (14:24 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2023 12:24:24 +0000 (14:24 +0200)
commit1161c14e8c68296fc465cd48970b32be9bee012e
tree369e0252cf2cb96bedefb0c891b7fbe3b0120152
parent12f0bbd6e08bcc1e7165f2641716f7685c1db35c
gh-112716: Fix SystemError when __builtins__ is not a dict (GH-112770)

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.
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