]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-148829: Make sentinels' repr and module customizable (GH-149654) (#150092)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 May 2026 14:44:34 +0000 (16:44 +0200)
committerGitHub <noreply@github.com>
Fri, 22 May 2026 14:44:34 +0000 (07:44 -0700)
commitf5231469b5516015de93553977303610ceb405cd
tree0e4b3046462391d374eb9e9ddb8d6a8f6f281a7a
parentb79112fb349ccc0b807610dd31a50712a8bbf6d8
[3.15] gh-148829: Make sentinels' repr and module customizable (GH-149654) (#150092)

Implementation of python/peps#4968.
(cherry picked from commit 08218030a507b2ef38db9696216bf3eb24d9a6a1)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
15 files changed:
Doc/c-api/sentinel.rst
Doc/data/python3.15.abi
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