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

Maciej Fijalkowski fijall at gmail.com
Mon Aug 25 12:08:19 CEST 2008

I'm not sure whether it's sympy's fault or pypy's fault. It might be
that pypy is too strict about that.

Arguments look like this:

(Pdb++) bases[0].__mro__
(Function, <class 'sympy.core.basic.Basic'>, <class
'sympy.core.assumptions.AssumeMeths'>, <type 'object'>)
(Pdb++) bases[1].__mro__
(<class 'sympy.core.basic.Atom'>, <class 'sympy.core.basic.Basic'>,
<class 'sympy.core.assumptions.AssumeMeths'>, <type 'object'>)
(Pdb++) cls
<class 'sympy.core.function.FunctionClass'>
(Pdb++) cls.__mro__
(<class 'sympy.core.function.FunctionClass'>, <class
'sympy.core.basic.BasicMeta'>, <class 'sympy.core.basic.BasicType'>,
<type 'type'>, <type 'object'>)

And it seems that bases[0] and bases[1] are incompatible (why?)

On Mon, Aug 25, 2008 at 11:45 AM, Ondrej Certik <ondrej at certik.cz> wrote:
> On Mon, Aug 25, 2008 at 11:19 AM, Maciej Fijalkowski <fijall at gmail.com> wrote:
>> Ok, I can reproduce it with newer version of sympy. Not sure what's wrong yet.
> Exactly. That's what I wanted to ask you what's wrong. :)
> I think we are using some stupid hacks, but if you could enlighten me
> how to fix sympy so that it works on pypy, it'd be awesome.
> Ondrej

More information about the Pypy-dev mailing list