Staging
v0.8.1
https://github.com/python/cpython
Revision 0430dfac629b4eb0e899a09b899a494aa92145f6 authored by Victor Stinner on 24 June 2020, 13:21:54 UTC, committed by GitHub on 24 June 2020, 13:21:54 UTC
Py_InitializeFromConfig() now always creates the empty tuple
singleton as soon as possible.

Optimize PyTuple_New(0): it no longer has to check if the empty tuple
was created or not, it is always creatd.

* Add tuple_create_empty_tuple_singleton() function.
* Add tuple_get_empty() function.
* Remove state parameter of tuple_alloc().
1 parent 80526f6
History
Tip revision: 0430dfac629b4eb0e899a09b899a494aa92145f6 authored by Victor Stinner on 24 June 2020, 13:21:54 UTC
bpo-40521: Always create the empty tuple singleton (GH-21116)
Tip revision: 0430dfa
File Mode Size
windows-release
ci.yml -rw-r--r-- 3.3 KB
docs-steps.yml -rw-r--r-- 1.3 KB
macos-steps.yml -rw-r--r-- 768 bytes
posix-deps-apt.sh -rwxr-xr-x 590 bytes
posix-steps.yml -rw-r--r-- 2.6 KB
pr.yml -rw-r--r-- 3.2 KB
prebuild-checks.yml -rw-r--r-- 1.2 KB
windows-layout-steps.yml -rw-r--r-- 1.5 KB
windows-release.yml -rw-r--r-- 3.9 KB
windows-steps.yml -rw-r--r-- 1.5 KB

back to top