[issue44232] Crash in Objects/typeobject.c
Ken Jin
report at bugs.python.org
Tue May 25 09:42:43 EDT 2021
Ken Jin <kenjin4096 at gmail.com> added the comment:
Can you please try removing the `assert(type != NULL);` line at https://github.com/python/cpython/blob/main/Objects/typeobject.c#L3313 and see if it works for you? I suspect that `winner->tp_new()` may sometimes fail and *should* return NULL to indicate that in those cases, so the assert may not always hold.
----------
nosy: +kj
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44232>
_______________________________________
More information about the Python-bugs-list
mailing list