]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-123681: Check NORMALIZE_CENTURY behavior at runtime; require C99 (GH-136022)
authorPetr Viktorin <encukou@gmail.com>
Tue, 19 Aug 2025 10:59:03 +0000 (12:59 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Aug 2025 10:59:03 +0000 (12:59 +0200)
commit719e5c3f7111bcda5eee72fe648786c427c4d4c2
treeda6e007fdf3f1af9449961d0db1e8a404e85cf6f
parentb07a267953b35f36f433b3078b2f6c89b95c72b9
gh-123681: Check NORMALIZE_CENTURY behavior at runtime; require C99 (GH-136022)

A runtime check is needed to support cross-compiling.

Remove the _Py_NORMALIZE_CENTURY macro.
Remove _pydatetime.py's _can_support_c99.

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