[pypy-dev] works in python2.4, fails in pypy

Ondrej Certik ondrej at certik.cz
Sun Aug 24 16:08:29 CEST 2008


Hi,

I am using pypy in Debian:

ondra at fuji:~/sympy$ python2.4
Python 2.4.5 (#2, Jul 20 2008, 20:55:34)
[GCC 4.3.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sympy
>>>
ondra at fuji:~/sympy$ pypy
Python 2.4.1 (pypy 1.0.0 build 55235) on linux2
Type "help", "copyright", "credits" or "license" for more information.
``the 'super' keyword is not that huggable''
>>>> import sympy
Traceback (most recent call last):
  File "<console>", line 1, in <interactive>
  File "/home/ondra/sympy/sympy/__init__.py", line 16, in <module>
    from sympy.core import *
  File "/home/ondra/sympy/sympy/core/__init__.py", line 13, in <module>
    from function import Lambda, WildFunction, Derivative, diff,
FunctionClass, \
  File "/home/ondra/sympy/sympy/core/function.py", line 361, in <module>
    class WildFunction(Function, Atom):
  File "/home/ondra/sympy/sympy/core/function.py", line 68, in __new__
    return type.__new__(cls, name, bases, attrdict)
TypeError: instance layout conflicts in multiple inheritance
>>>>


Do you know what this error means and how should we fix sympy so that
it works on top of pypy?

Ondrej



More information about the Pypy-dev mailing list