mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-84436: Immortalize in _PyStructSequence_InitBuiltinWithFlags() (gh-104054)
This also does some cleanup.
This commit is contained in:
parent
d448fcb032
commit
59bc36aacd
8 changed files with 74 additions and 59 deletions
|
@ -7031,6 +7031,7 @@ PyType_Ready(PyTypeObject *type)
|
|||
int
|
||||
_PyStaticType_InitBuiltin(PyTypeObject *self)
|
||||
{
|
||||
assert(_Py_IsImmortal((PyObject *)self));
|
||||
assert(!(self->tp_flags & Py_TPFLAGS_HEAPTYPE));
|
||||
|
||||
if (self->tp_flags & Py_TPFLAGS_READY) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue