https://github.com/python/cpython
Revision 8bea6c411d65cd987616b4ecdb86373e4f21f1c6 authored by Victor Stinner on 21 March 2024, 16:07:00 UTC, committed by GitHub on 21 March 2024, 16:07:00 UTC
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.
1 parent 5a76d1b
History
Tip revision: 8bea6c411d65cd987616b4ecdb86373e4f21f1c6 authored by Victor Stinner on 21 March 2024, 16:07:00 UTC
gh-115754: Add Py_GetConstant() function (#116883)
Tip revision: 8bea6c4
File Mode Size
.azure-pipelines
.devcontainer
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
iOS
.coveragerc -rw-r--r-- 526 bytes
.editorconfig -rw-r--r-- 214 bytes
.gitattributes -rw-r--r-- 3.9 KB
.gitignore -rw-r--r-- 3.1 KB
.mailmap -rw-r--r-- 175 bytes
.pre-commit-config.yaml -rw-r--r-- 1018 bytes
.readthedocs.yml -rw-r--r-- 1014 bytes
LICENSE -rw-r--r-- 13.5 KB
Makefile.pre.in -rw-r--r-- 115.8 KB
README.rst -rw-r--r-- 8.6 KB
aclocal.m4 -rw-r--r-- 23.7 KB
config.guess -rwxr-xr-x 48.2 KB
config.sub -rwxr-xr-x 36.1 KB
configure -rwxr-xr-x 856.3 KB
configure.ac -rw-r--r-- 238.5 KB
install-sh -rwxr-xr-x 15.0 KB
pyconfig.h.in -rw-r--r-- 53.5 KB

README.rst

back to top