homepage

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 <1481487348.2.0.231736540645.issue5322@psf.upfronthosting.co.za>
In-reply-to
Content
Here is more minimal breaking example. This clearly shows that this patch breaks backwards compatibility.
```
$ cat obj.pyx
cdef class OBJ(object):
 pass
$ 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__()
```
History
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: <1481487348.2.0.231736540645.issue5322@psf.upfronthosting.co.za>
2016年12月11日 20:15:48jdemeyerlinkissue5322 messages
2016年12月11日 20:15:47jdemeyercreate

AltStyle によって変換されたページ (->オリジナル) /