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-108765: Python.h no longer includes <sys/time.h>#108775

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 1 commit intopython:mainfromvstinner:include_time
Sep 2, 2023

Conversation

vstinner
Copy link
Member

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

Python.h no longer includes these standard header files: <time.h>, <sys/select.h> and <sys/time.h>. They should now be included explicitly if needed.


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

FirePowi reacted with thumbs up emoji
Python.h no longer includes <time.h>, <sys/select.h> and <sys/time.h>standard header files.* Add <time.h> include to xxsubtype.c.* Add <sys/time.h> include to posixmodule.c and semaphore.c.* readline.c includes <sys/select.h> instead of <sys/time.h>.* resource.c no longer includes <time.h> and <sys/time.h>.
@vstinner
Copy link
MemberAuthor

I merged my PR.

If it causes too many trouble in 3rd party C extensions (require to update too many C extensions before Python 3.13 beta1), I can make this change conditional only in the limited C API version 3.13.

See also my PR removing<unistd.h>: PR#108783.

@vstinnervstinner merged commite7de0c5 intopython:mainSep 2, 2023
@vstinnervstinner deleted the include_time branchSeptember 2, 2023 15:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pgansslepganssleAwaiting requested review from pgansslepganssle is a code owner

@abalkinabalkinAwaiting requested review from abalkinabalkin 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