mirror of
https://github.com/python/cpython.git
synced 2025-12-02 07:37:25 +00:00
Add Py_GetConstant() and Py_GetConstantBorrowed() functions. In the limited C API version 3.13, getting Py_None, Py_False, Py_True, Py_Ellipsis and Py_NotImplemented singletons is now implemented as function calls at the stable ABI level to hide implementation details. Getting these constants still return borrowed references. Add _testlimitedcapi/object.c and test_capi/test_object.py to test Py_GetConstant() and Py_GetConstantBorrowed() functions. |
||
|---|---|---|
| .. | ||
| refcounts.dat | ||
| stable_abi.dat | ||