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()
This commit is contained in:
Victor Stinner 2023-07-02 00:27:18 +02:00 committed by GitHub
parent 822db860ea
commit 46d77610fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 650 additions and 667 deletions

View file

@ -40,7 +40,6 @@ EXCLUDED_HEADERS = {
"longintrepr.h",
"parsetok.h",
"pyatomic.h",
"pytime.h",
"token.h",
"ucnhash.h",
}