mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-115754: Add Py_GetConstant() function (#116883)
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.
This commit is contained in:
parent
5a76d1be8e
commit
8bea6c411d
22 changed files with 312 additions and 6 deletions
|
|
@ -742,3 +742,4 @@ Modules/_sqlite/module.c - _sqlite3module -
|
|||
Modules/clinic/md5module.c.h _md5_md5 _keywords -
|
||||
Modules/clinic/grpmodule.c.h grp_getgrgid _keywords -
|
||||
Modules/clinic/grpmodule.c.h grp_getgrnam _keywords -
|
||||
Objects/object.c - constants static PyObject*[]
|
||||
|
|
|
|||
|
Can't render this file because it has a wrong number of fields in line 4.
|
Loading…
Add table
Add a link
Reference in a new issue