8000 gh-117398: datetime: Access C-API via `PyInterpreterState` by neonene · Pull Request #118357 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117398: datetime: Access C-API via PyInterpreterState #118357

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 24 commits into from
Closed
Show file tree
Hide file tree
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
globals-to-fix.tsv
  • Loading branch information
neonene committed Apr 27, 2024
commit fecd19228ac43eb7a076cb5a04cbaed92a336fa4
1 change: 1 addition & 0 deletions Include/datetime.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ typedef struct _pydatetime_capi {
PyObject *(*DateTime_FromDateAndTimeAndFold)(int, int, int, int, int, int, int,
PyObject*, int, PyTypeObject*);
PyObject *(*Time_FromTimeAndFold)(int, int, int, int, PyObject*, int, PyTypeObject*);

struct _pydatetime_capi *(*_get_capi_by_interp)(void);
void (*_set_capi_by_interp)(struct _pydatetime_capi *);
} PyDateTime_CAPI;
Expand Down
2 changes: 1 addition & 1 deletion Tools/c-analyzer/cpython/globals-to-fix.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Modules/_tkinter.c - trbInCmd -
## initialized once

## other
Include/datetime.h - PyDateTimeAPI -
Include/datetime.h - _get_pydatetime_capi -
Modules/_ctypes/cfield.c _ctypes_get_fielddesc initialized -
Modules/_ctypes/malloc_closure.c - _pagesize -
Modules/_cursesmodule.c - initialised -
Expand Down
0