SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 136 Python

bpo-40521: Always create the empty tuple singleton (GH-21116)

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().
V
Victor Stinner committed
0430dfac629b4eb0e899a09b899a494aa92145f6
Parent: 80526f6
Committed by GitHub <noreply@github.com> on 6/24/2020, 1:21:54 PM