Hi Ondrej,

On Sat, Oct 11, 2008 at 11:42:47PM +0200, Ondrej Certik wrote:
> +def is_iterable(x):
> +    try:
> +        iter(x)
> +        if isinstance(x, str) and len(x) == 1:
> +            return False
> +        return True
> +    except TypeError:
> +        return False

I don't see why there is a check for len(x); the same difference exists
for strings of any length, not just characters.

> Armin, is there some way to tell pypy-c to stop on ctrl-C? I am
> getting hangups and the only way out is to kill the pypy-c program.
> It'd be much more convenient if I could just do ctrl-C and it would
> print the stacktrace.

That's what it should do.  Do you have a way to reproduce the problem?
Just running the sympy tests with the above patch?


A bientot,

Armin
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to