2.1 vs. 2.2

Tim Peters tim.one at comcast.net
Sat Apr 13 22:03:21 EDT 2002


[Jens Baader]
> BTW, try this in interactive mode:
>
> "The Python interpreter is very stable"*30000
>
> At least at my system the interpreter promptly
> hangs itself.

Which version of Python, which OS, and exactly what do you mean by
"interactive mode"?  The code you showed isn't a challenge for any version
of Python I'm aware of (and Python & I go back more than a decade <wink>),
but if you're running Python under a GUI or windowing system of some kind,
the megabyte string Python tries to display may be giving *it* fits.  Try
this instead:

len("The Python interpreter is very stable"*30000)

If that doesn't display 1110000 in an eyeblink, then you may have a real
problem.

> I guess I just found my first bug..

Possibly, but the odds that it's a Python bug are small.






More information about the Python-list mailing list