10000 gh-101476: Add _PyType_GetModuleState by erlend-aasland · Pull Request #101477 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-101476: Add _PyType_GetModuleState #101477

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 11 commits into from
Feb 23, 2023
Prev Previous commit
Next Next commit
Address review: add comment
  • Loading branch information
erlend-aasland committed Feb 3, 2023
commit 6ce3ab046e2c5c475fd755e20bb86a7a5ae07f22
2 changes: 2 additions & 0 deletions Include/internal/pycore_typeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ _PyStaticType_GET_WEAKREFS_LISTPTR(static_builtin_state *state)
return &state->tp_weaklist;
}

/* Like PyType_GetModuleState, but skips verification
* that type is a heap type with an associated module */
static inline void *
_PyType_GetModuleState(PyTypeObject *type)
{
Expand Down
0