]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-123681: Check NORMALIZE_CENTURY behavior at runtime; require C99 (GH-136022...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 17:59:06 +0000 (19:59 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 17:59:06 +0000 (19:59 +0200)
commit7d9b2671c6fcdb09cf49a235e3ef3bd5230b4156
tree254291e555289b16850ea91210bece58d062b582
parentfad7bfc2829d262e68af40491880000351b12ad2
[3.14] gh-123681: Check NORMALIZE_CENTURY behavior at runtime; require C99 (GH-136022) (GH-137947)

A runtime check is needed to support cross-compiling.

Remove the _Py_NORMALIZE_CENTURY macro.
Remove _pydatetime.py's _can_support_c99.
(cherry picked from commit 719e5c3f7111bcda5eee72fe648786c427c4d4c2)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/_pydatetime.py
Lib/test/datetimetester.py
Misc/NEWS.d/next/Build/2025-01-03-13-02-06.gh-issue-123681.gQ67nK.rst [new file with mode: 0644]
Modules/_datetimemodule.c
Tools/c-analyzer/cpython/ignored.tsv
configure
configure.ac
pyconfig.h.in