Ken Jin <kenjin4...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to