]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106316: Remove pytime.h header file (#106317)
authorVictor Stinner <vstinner@python.org>
Sat, 1 Jul 2023 22:27:18 +0000 (00:27 +0200)
committerGitHub <noreply@github.com>
Sat, 1 Jul 2023 22:27:18 +0000 (22:27 +0000)
commit46d77610fc77088bceac720a13d9f2df3a50f29e
tree73f82577bf72de0a3f9a663fe226707879e91349
parent822db860eada721742f878653d7ac9364ed8df59
gh-106316: Remove pytime.h header file (#106317)

Remove the "cpython/pytime.h" header file: it only contained private
functions. Move functions to the internal pycore_time.h header file.

Move tests from _testcapi to _testinternalcapi. Rename also test
methods to have the same name than tested C functions.

No longer export these functions:

* _PyTime_Add()
* _PyTime_As100Nanoseconds()
* _PyTime_FromMicrosecondsClamp()
* _PyTime_FromTimespec()
* _PyTime_FromTimeval()
* _PyTime_GetPerfCounterWithInfo()
* _PyTime_MulDiv()
25 files changed:
.github/CODEOWNERS
Doc/whatsnew/3.13.rst
Include/Python.h
Include/cpython/pytime.h [deleted file]
Include/internal/pycore_import.h
Include/internal/pycore_time.h
Lib/test/test_time.py
Makefile.pre.in
Misc/NEWS.d/next/C API/2023-07-01-21-23-33.gh-issue-106316.hp2Ijw.rst [new file with mode: 0644]
Modules/Setup.stdlib.in
Modules/_queuemodule.c
Modules/_testcapi/parts.h
Modules/_testcapi/pytime.c
Modules/_testcapimodule.c
Modules/_testinternalcapi.c
Modules/_testsinglephase.c
Modules/selectmodule.c
Modules/socketmodule.h
PCbuild/_testcapi.vcxproj
PCbuild/_testcapi.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/pytime.c
Tools/build/stable_abi.py
Tools/c-analyzer/c_parser/preprocessor/gcc.py