Re: [pypy-dev] Possibly a PyPy C-API bug

2014-03-08 Thread Armin Rigo
Hi Johan, On 8 March 2014 14:42, Johan Råde wrote: > I think I might have found a bug in the PyPy C-API. > It seems that PyType_Type.tp_new is broken. Indeed. I tried to look, but either I missed something or it looks like it won't be that obvious to fix. For reference, the built-in types like

[pypy-dev] Possibly a PyPy C-API bug

2014-03-08 Thread Johan Råde
Hi everyone, I think I might have found a bug in the PyPy C-API. It seems that PyType_Type.tp_new is broken. Here is a minimal example that reproduces the bug. Instructions: Compile Foo3.c as a python extension module named Foo3. Set up the paths so that Test3.py can find Foo3.