cpython/Modules/_testlimitedcapi
Victor Stinner 8bea6c411d
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.
2024-03-21 16:07:00 +00:00
..
clinic gh-116417: Move limited C API long.c tests to _testlimitedcapi (#117001) 2024-03-19 14:04:23 +00:00
abstract.c gh-116417: Move limited C API abstract.c tests to _testlimitedcapi (#116986) 2024-03-19 10:44:13 +00:00
bytearray.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
bytes.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
complex.c gh-116417: Move limited C API complex.c tests to _testlimitedcapi (#117014) 2024-03-19 17:23:12 +01:00
dict.c gh-116417: Move limited C API dict.c tests to _testlimitedcapi (#117006) 2024-03-19 15:06:20 +00:00
float.c gh-116417: Move limited C API unicode.c tests to _testlimitedcapi (#116993) 2024-03-19 12:30:39 +00:00
heaptype_relative.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
list.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
long.c gh-117021: Fix integer overflow in PyLong_AsPid() on non-Windows 64-bit platforms (GH-117064) 2024-03-20 15:39:53 +02:00
object.c gh-115754: Add Py_GetConstant() function (#116883) 2024-03-21 16:07:00 +00:00
parts.h gh-115754: Add Py_GetConstant() function (#116883) 2024-03-21 16:07:00 +00:00
pyos.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
set.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
sys.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00
testcapi_long.h gh-116417: Move limited C API long.c tests to _testlimitedcapi (#117001) 2024-03-19 14:04:23 +00:00
unicode.c gh-116417: Move limited C API unicode.c tests to _testlimitedcapi (#116993) 2024-03-19 12:30:39 +00:00
util.h gh-116417: Move 4 limited C API test files to _testlimitedcapi (#116571) 2024-03-11 10:28:16 +00:00
vectorcall_limited.c gh-116417: Fix WASI build of _testlimitedcapi (#116974) 2024-03-18 23:06:52 +01:00