Jeroen Demeyer <[email protected]> added the comment:
Changing types like that looks like an ugly hack and a recipe for breakage. For
example, in list_dealloc(), the following needs the type to be correct:
if (numfree < PyList_MAXFREELIST && PyList_CheckExact(op))
free_list[numfree++] = op;
else
Py_TYPE(op)->tp_free((PyObject *)op);
Could you please clarify your opinion: do you think that there's something
wrong with PR 11841? And if yes: what's wrong with it? Or are you just giving
optional suggestions?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35983>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com