Skip to content
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

Remove Include/cpython/pytime.h header file #106316

Closed
vstinner opened this issue Jul 1, 2023 · 0 comments
Closed

Remove Include/cpython/pytime.h header file #106316

vstinner opened this issue Jul 1, 2023 · 0 comments

Comments

@vstinner
Copy link
Member

vstinner commented Jul 1, 2023

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

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()
@vstinner vstinner closed this as completed Jul 2, 2023
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant