8000 GH-100719: Remove redundant `gi_code` field from generator object. by markshannon · Pull Request #100749 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-100719: Remove redundant gi_code field from generator object. #100749

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

Merged
merged 10 commits into from
Feb 23, 2023
Prev Previous commit
Next Next commit
Add back gi_code field to PyGenObject and deprecate it.
  • Loading branch information
markshannon committed Feb 13, 2023
commit f7e9c7133e1982110cb078d6eb76b4752dd75015
5 changes: 4 additions & 1 deletion Include/cpython/genobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ extern "C" {
char prefix##_running_async; \
/* The frame */ \
int8_t prefix##_frame_state; \
PyObject *prefix##_iframe[1];
union { \
Py_DEPRECATED(3.12) PyCodeObject *prefix##_code; \
PyObject *prefix##_iframe[1]; \
};

typedef struct {
/* The gi_ prefix is intended to remind of generator-iterator. */
Expand Down
0