[pypy-issue] [issue1703] Crash when overriding PyType_Type.tp_new

Johan Rade tracker at bugs.pypy.org
Mon Mar 10 12:33:12 CET 2014


Johan Rade <johan.rade at gmail.com> added the comment:

I tried to run some tests to see what happens when you override the other slots.
But then I discovered something surprising:

The derived metaclass crashes even if you do not override any slots.

I have uploaded an example Foo4 that demonstrates this behavior. You compile and
run Foo4 the same way as Foo3. With CPython 2.7.6 Test4.py runs, which is the
expected behavior. With PyPy 2.2.1 and PyPy -r69793 it crashes.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1703>
________________________________________


More information about the pypy-issue mailing list