Python BUG?
Oleg Broytmann
phd at phd.russ.ru
Wed Jan 12 04:32:08 EST 2000
On Wed, 12 Jan 2000, Oleg Orlov wrote:
> This script:
>
> d = [1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L,
> 10L, 9L, 8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L]
> print reduce(lambda x, y: x*x + y*y, d)
>
> hangs up my python interpreter (on NT4).
>
> Is it a bug or my mistake?
> How about UNIX?
My computer worked about 10 minutes and printed a very looong result. :)
Pentium-150, Debian GNU/Linux.
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd at phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list