[sympy] Re: [pypy-dev] sympy tests: pypy vs cpython incompatibilities

2008-10-10 Thread Ondrej Certik
>> We also thought we could just include py.test in sympy, but py.test >> depends on the py lib and it is big. So I just rewrote the necessary >> thing from scratch and it can do what I want. > > Raymond Hettinger at some point also wrote a pytest one-file > script with a subset of features. Prob

[sympy] Re: [pypy-dev] sympy tests: pypy vs cpython incompatibilities

2008-10-11 Thread Ondrej Certik
On Sat, Oct 11, 2008 at 7:34 PM, Armin Rigo <[EMAIL PROTECTED]> wrote: > Hi, > > On Thu, Oct 09, 2008 at 02:19:35AM +0200, Ondrej Certik wrote: >> if hasattr(i, "__iter__"): >> RuntimeError: internal error: > > This occurs because our 'str' type has an '__iter__' special method. It > turns o

[sympy] Re: [pypy-dev] sympy tests: pypy vs cpython incompatibilities

2008-10-11 Thread didier deshommes
On Sat, Oct 11, 2008 at 1:50 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> as soon as someone realizes that in CPython it is possible to speed up >> iteration over strings by creating a stringiterator type, then CPython >> will grow a 'str.__iter__' as well, and the same infinite recursion will

[sympy] Re: [pypy-dev] sympy tests: pypy vs cpython incompatibilities

2008-10-11 Thread Ondrej Certik
On Sat, Oct 11, 2008 at 8:13 PM, didier deshommes <[EMAIL PROTECTED]> wrote: > > On Sat, Oct 11, 2008 at 1:50 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >>> as soon as someone realizes that in CPython it is possible to speed up >>> iteration over strings by creating a stringiterator type, then C

[sympy] Re: [pypy-dev] sympy tests: pypy vs cpython incompatibilities

2008-10-11 Thread Robert Kern
On Sat, Oct 11, 2008 at 13:13, didier deshommes <[EMAIL PROTECTED]> wrote: > > On Sat, Oct 11, 2008 at 1:50 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >>> as soon as someone realizes that in CPython it is possible to speed up >>> iteration over strings by creating a stringiterator type, then CPy