]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118527: Use `_Py_ID(__main__)` for main module name (#118528)
authorSam Gross <colesbury@gmail.com>
Fri, 3 May 2024 15:05:30 +0000 (11:05 -0400)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 15:05:30 +0000 (11:05 -0400)
commit24e643d4ef024a3561c927dc07c59c435bb27bcc
treee24d3a2e89c2705512b3c2b27ae8bade860db47f
parentc8deb1e4b495bf97ab00c710dfd63f227e1fb645
gh-118527: Use `_Py_ID(__main__)` for main module name (#118528)

Most module names are interned and immortalized, but the main
module was not. This partially addresses a scaling bottleneck in the
free-threaded when creating closure concurrently in the main module.
Python/pylifecycle.c