-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Remove Include/cpython/pytime.h header file #106316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Jul 1, 2023
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.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Jul 1, 2023
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()
vstinner
added a commit
that referenced
this issue
Jul 1, 2023
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()
encukou
added a commit
to encukou/cpython
that referenced
this issue
Feb 12, 2024
…ader file (python#106317)" This reverts commit 46d7761, and returns to the status quo (3.12). Tests are left in _testinternalcapi; this sounds appropriate for underscored functions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove Include/cpython/pytime.h header file: it only contains private functions and so far no one asked to expose public functions for this API.
I propose to move these functions to the internal pycore_time.h header file.
Linked PRs
The text was updated successfully, but these errors were encountered: