[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

[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 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 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: Virasoro algebra in sympy

2008-10-11 Thread Brian Granger
> Not yet, but I want to play with this in sympy. So far there is only: > > $ examples/qft.py > > which calculates some simple scattering amplitude by direct > multiplications of the dirac matrices. Do you have some particular > example you'd like to play with? If so, I can try to implement that,

[sympy] Re: Where is print_pygame?

2008-10-11 Thread Ondrej Certik
2008/10/11 Oyster <[EMAIL PROTECTED]>: > > > > Mateusz Paprocki 写道: >> Hi Oyster, >> >> > I am using sympy 0.6.2 on py24, and I have pygame module. But I met >> > this error. Does that mean pygame is not supported by sympy anymore? >> >> We decided to remove support for pygame because the same func

[sympy] Re: Where is print_pygame?

2008-10-11 Thread Oyster
Mateusz Paprocki 写道: > Hi Oyster, > > > I am using sympy 0.6.2 on py24, and I have pygame module. But I met > > this error. Does that mean pygame is not supported by sympy anymore? > > We decided to remove support for pygame because the same functionality > can be achieved with pyglet, which we

[sympy] Re: Virasoro algebra in sympy

2008-10-11 Thread Ondrej Certik
On Sat, Oct 11, 2008 at 2:15 AM, Brian Granger <[EMAIL PROTECTED]> wrote: > > Ondrej, > > On a related note... > > You mention that you have done QED related things with Sympy. Have > you ever implemented creation and annihilation operators along with > fock states in sympy? Not yet, but I want