This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients Ringding, Trundle, aronacher, benjamin.peterson, gvanrossum, jdemeyer, pitrou, prologic, python-dev, sebastinas, serhiy.storchaka, thansen, vstinner
Date 2016-12-11.20:15:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here is more minimal breaking example. This clearly shows that this patch breaks backwards compatibility.

$ cat obj.pyx
cdef class OBJ(object):

$ ipython
Python 2.7.13rc1 (default, Dec 11 2016, 14:21:24) 
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import pyximport; pyximport.install()
Out[1]: (None, <pyximport.pyximport.PyxImporter at 0x7f8e8c585910>)

In [2]: import obj

In [3]: class X(obj.OBJ, dict):
   ...:     pass

In [4]: X()
TypeError                                 Traceback (most recent call last)
<ipython-input-4-a7d4f7b89654> in <module>()
----> 1 X()

TypeError: obj.OBJ.__new__(X) is not safe, use dict.__new__()
Date User Action Args
2016-12-11 20:15:48jdemeyersetrecipients: + jdemeyer, gvanrossum, pitrou, vstinner, sebastinas, benjamin.peterson, aronacher, prologic, Trundle, Ringding, python-dev, serhiy.storchaka, thansen
2016-12-11 20:15:48jdemeyersetmessageid: <>
2016-12-11 20:15:48jdemeyerlinkissue5322 messages
2016-12-11 20:15:47jdemeyercreate