-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
bpo-35134: Add Include/cpython/pytime.h file #23988
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ | |
| #include "pycore_pyerrors.h" | ||
| #include "pycore_pystate.h" // _PyThreadState_GET() | ||
| #include "pydtrace.h" | ||
| #include "pytime.h" // _PyTime_GetMonotonicClock() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hum. Since it's included by Python.h, including it explicitly is not needed, no?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've updated these, and moved the |
||
| #include "cpython/pytime.h" // _PyTime_GetMonotonicClock() | ||
|
|
||
| typedef struct _gc_runtime_state GCState; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that people should include pytime.h directly, and so I suggest to simply remove these includes. Let people respect the Python C API documentation which suggests to only include "Python.h".