[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty
Serhiy Storchaka
report at bugs.python.org
Thu Dec 15 01:21:03 EST 2016
Serhiy Storchaka added the comment:
Yes, it was what the patch did by setting tp_new to slot_tp_new. The problem is that the same code is used for inherited __new__ and assigned in class body. It is hard to distinguish between these cases.
In any case I think that Cython shouldn't generate trivial __new__. This will help to change the order of __new__ resolution at least in 3.7.
----------
nosy: +scoder
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5322>
_______________________________________
More information about the Python-bugs-list
mailing list