commit | d4aaa34798f0dd8402f412e2aa9d6fa2d6cff5fa | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Apr 21 23:36:26 2021 +0200 |
committer | GitHub <noreply@github.com> | Wed Apr 21 23:36:26 2021 +0200 |
tree | 1d6376f3e6153091cfc9b6c8aae272168674441e | |
parent | 81fe01492c3b0892316719a07fe8b53f85f86a0a [diff] |
bpo-40137: _PyType_GetModuleByDef() doesn't check tp_flags (GH-25504) _PyType_GetModuleByDef() no longer checks if types are heap types. _PyType_GetModuleByDef() must only be called on a heap type created by PyType_FromModuleAndSpec() or on its subclasses. type_ready_mro() ensures that a static type cannot inherit from a heap type.