Crawling Python

MK mark at _spamspamlovelyspam_btweng.krakow.pl
Sat Jun 19 11:37:57 CEST 1999


On Fri, 18 Jun 1999 19:34:03 GMT, Sam Schulenburg <sams at quinta.com> wrote:

>> >>> len(s)
>> 1178515

>I just tried both environments on a WindowsNT system and obtained
>130000 for len(s) under IDLE and Console mode python.

Win98. I tried the same several more times in DOS box and got different results
every time:

>>> for i in range(10000):
...     s=s+`range(i,i+20)`
...
>>>
>>>
>>> len(s)
1645360
>>>
>>>
>>> s=''
>>>
>>> for i in range(10000):
...     s=s+`range(i,i+20)`
...
>>> len(s)
1178515
>>>
>>> for i in range(10000):
...     s=s+`range(i,i+20)`
...
>>> len(s)
2357030
>>>

Now _that_ is weird.





MK


--------------------------------------------------
Reality is something that does not disappear after 
you cease believing in it - VALIS, Philip K. Dick
--------------------------------------------------

Delete _spamspamlovelyspam_ from address to email me

postmaster at 127.0.0.1
root at 127.0.0.1
webmaster at 127.0.0.1







More information about the Python-list mailing list