8000 gh-117398: datetime: Support per-interpreter C-API by neonene · Pull Request #117399 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117398: datetime: Support per-interpreter C-API #117399

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

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
silence warning
  • Loading branch information
neonene committed Mar 31, 2024
commit 12ae163f935fe0a8aab75572d9e3b878aa23d6ff
1 change: 1 addition & 0 deletions Include/datetime.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ PyAPI_FUNC(PyDateTime_CAPI *) get_datetime_capi(void);

static inline void pydatetime_import(void) {
PyDateTime_CAPI *capi = PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0);
(void)capi;
assert(capi == get_datetime_capi());
}
#define PyDateTime_IMPORT pydatetime_import()
Expand Down
0