mirror of
https://github.com/python/cpython.git
synced 2026-05-07 05:01:13 -04:00
79c43e7c24
The positional arguments passed to _PyStack_UnpackDict are already kept alive by the caller, so we can avoid the extra reference count operations by using borrowed references instead of creating new ones. This reduces reference count contention in the free-threaded build when calling functions with keyword arguments. In particular, this avoids contention on the type argument to `__new__` when instantiating namedtuples with keyword arguments.
Miscellaneous source files for the main Python shared library