]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148829: Make sentinels' repr and module customizable (#149654)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 19 May 2026 16:18:56 +0000 (09:18 -0700)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 16:18:56 +0000 (09:18 -0700)
commit08218030a507b2ef38db9696216bf3eb24d9a6a1
tree93a54022c12ab2f94eb29ed3badd54e59bc610af
parent6372d48a4d5c394a6638741d0c3c849a20161efb
gh-148829: Make sentinels' repr and module customizable (#149654)

Implementation of python/peps#4968; still needs SC approval.
14 files changed:
Doc/c-api/sentinel.rst
Doc/data/refcounts.dat
Doc/library/functions.rst
Include/cpython/sentinelobject.h
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/test/test_builtin.py
Lib/test/test_capi/test_object.py
Misc/NEWS.d/next/Core_and_Builtins/2026-05-10-16-43-50.gh-issue-148829.gscS14.rst [new file with mode: 0644]
Modules/_testcapi/object.c
Objects/clinic/sentinelobject.c.h
Objects/sentinelobject.c