[pypy-dev] sympy fails to import

Ondrej Certik ondrej at certik.cz
Mon Apr 12 07:33:06 CEST 2010

On Mon, Apr 12, 2010 at 6:22 AM, Maciej Fijalkowski <fijall at gmail.com> wrote:
> On Sun, Apr 11, 2010 at 11:20 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
>> On Sat, Apr 10, 2010 at 1:25 PM, Ondrej Certik <ondrej at certik.cz> wrote:
>>> On Sat, Apr 10, 2010 at 11:57 AM, Benjamin Peterson <benjamin at python.org> wrote:
>>>> 2010/4/10 Ondrej Certik <ondrej at certik.cz>:
>>>>> Hi,
>>>> Hi
>>>>>    if hasattr(i, "__iter__"):
>>>>> RuntimeError: internal error: <RuntimeError object at 0x868c778>
>>>> Your code is probably assuming that strings don't have __iter__. They
>>>> do in PyPy.
>>> That could be it. I'll investigate it and report later.
>>> Thanks for the tip.
>>> Ondrej
>>> _______________________________________________
>> Didn't we remove __iter__ after the release from strings?
> Yop we did.
> Ondrej: you can build new pypy and it should work (we also should do
> 1.2.1 release some time soon I believe).

Does anyone have a recent git repository of pypy that I could pull
from? If not, I'll just use the svn.

> Also, I don't think it's wise to use hasattr(x, '__iter__') to decide
> whether stuff is string or not.

I think it's not wise at all, I agree. We should fix it.


More information about the Pypy-dev mailing list