Crawling Python

Sam Schulenburg sams at quinta.com
Fri Jun 18 15:34:03 EDT 1999


In article <376a1ac1.10261180 at news.tpnet.pl>,
  mark at _spamspamlovelyspam_btweng.krakow.pl (MK) wrote:
> On Thu, 17 Jun 1999 20:02:39 -0400, "Tim Peters"
<tim_one at email.msn.com> wrote:
>  -- clip clip --
> Strangling IDLE continued:
>
> in DOS box I tried
>
> >>> s=''
> >>> for i in range(10000):
> ...     s=s+`range(i,i+20)`
> ...
>
> >>> len(s)
> 1178515
>
> and everything is OK.
>
> While the same loop in IDLE crashed it (I mean it hangs for some
period, then it
> stops responding and has to be killed).
>
> MK
> -- clip  clip --

I just tried both environments on a WindowsNT system and obtained
130000 for len(s) under IDLE and Console mode python.
IDLE took approx. 25 seconds and Console took approx 20 seconds.


Sam Schulenburg


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list