Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-106316: Remove pytime.h header file#106317

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 4 commits intopython:mainfromvstinner:pytime
Jul 1, 2023
Merged

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedJul 1, 2023
edited by github-actionsbot
Loading

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()

📚 Documentation preview 📚:https://cpython-previews--106317.org.readthedocs.build/

Remove the "cpython/pytime.h" header file: it only contained privatefunctions. Move functions to the internal pycore_time.h header file.Move tests from _testcapi to _testinternalcapi. Rename also testmethods 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()
@vstinnervstinnerenabled auto-merge (squash)July 1, 2023 22:03
@vstinnervstinner merged commit46d7761 intopython:mainJul 1, 2023
@vstinnervstinner deleted the pytime branchJuly 1, 2023 23:18
encukou added a commit to encukou/cpython that referenced this pull requestFeb 12, 2024
…ader file (python#106317)"This reverts commit46d7761,and returns to the  status quo (3.12).Tests are left in _testinternalcapi; this sounds appropriate forunderscored functions.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@rhettingerrhettingerAwaiting requested review from rhettinger

@encukouencukouAwaiting requested review from encukouencukou is a code owner

@pgansslepganssleAwaiting requested review from pgansslepganssle is a code owner

@abalkinabalkinAwaiting requested review from abalkinabalkin is a code owner

@brettcannonbrettcannonAwaiting requested review from brettcannonbrettcannon is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlanncoghlan is a code owner

@warsawwarsawAwaiting requested review from warsawwarsaw is a code owner

@ezio-melottiezio-melottiAwaiting requested review from ezio-melottiezio-melotti is a code owner

@hugovkhugovkAwaiting requested review from hugovkhugovk is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@vstinner@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp