]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132775: Always Set __builtins__ In _PyFunction_FromXIData() (gh-134758)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 27 May 2025 15:42:24 +0000 (09:42 -0600)
committerGitHub <noreply@github.com>
Tue, 27 May 2025 15:42:24 +0000 (15:42 +0000)
commit9b5e80000ee179eb028841709f10dac9af7c36e7
tree27190d8a396813e41b9a2a7db989ac1e06fd7969
parentc3c88064f5905889057dcdfaaaa4a48f8e2d53d4
gh-132775: Always Set __builtins__ In _PyFunction_FromXIData() (gh-134758)

This is a small follow-up to gh-133481.  There's a corner case
in the behavior of PyImport_ImportModuleAttrString(), where
it expects __builtins__ to be set if __globals__ is set.
Python/crossinterp_data_lookup.h