[Python-Dev] tp_new selection regression in the 2.7 branch

Julien Cristau jcristau at debian.org
Mon Apr 11 09:49:10 EDT 2016


Hi,

changeset https://hg.python.org/cpython/rev/e7062dd9085e in the 2.7
branch changes how tp_new is assigned, and causes regressions with
multiple inheritance from extension classes.
http://bugs.python.org/issue25731#msg262922 has a fairly simple
reproducer using cython.  The __base__ attribute is set correctly, but
tp_new is now wrong and thus the object initialization is broken.

Can this change be fixed or reverted before the next 2.7.x release?

(I have not verified if this regression also affects the 3.5 branch)

Thanks,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160411/8504e459/attachment.sig>


More information about the Python-Dev mailing list