]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-132775: Always Set __builtins__ In _PyFunction_FromXIData() (gh-134794)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 27 May 2025 16:07:44 +0000 (18:07 +0200)
committerGitHub <noreply@github.com>
Tue, 27 May 2025 16:07:44 +0000 (16:07 +0000)
commit6493395f4b69c561db14fdb5c10a819fda52138d
treef65ca8ffd03d747c8df0290d0fc48fec4df9a4d9
parenta1b6252c88fbeecdbb7e23a68058dae4c761740a
[3.14] gh-132775: Always Set __builtins__ In _PyFunction_FromXIData() (gh-134794)

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.

(cherry picked from commit 9b5e80000, AKA gh-134758)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Python/crossinterp_data_lookup.h