You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 20bf204
Browse filesBrowse the repository at this point in the historyBrowse files
gh-160840: In PyType_GetModuleByDef, fall back to tp_bases if tp_mro is gone (GH-162160)
`PyType_GetModuleByDef` asserted that a type's `mro` is not NULL,
but this can happen when cleaning a GC cycle. If it does, we can
still fall back to walking `tp_bases`.
(cherry picked from commit 4499a94.
This backport changes only `PyType_GetModuleByDef`, while in 3.15+,
`*ByDef` is implemented on top of the new `PyType_GetModuleByToken`,
which the original commit changes too.)
0 commit comments