is for reliable?
Terry Reedy
tjreedy at udel.edu
Mon May 7 20:37:57 EDT 2007
Yes.
<pabloski at giochinternet.com> wrote in message
news:BmL%h.781$%k.3759 at twister2.libero.it...
| Hi to all I have a question about the for statement of python. I have the
| following piece of code where cachefilesSet is a set that contains the
| names of 1398 html files cached on my hard disk
[snip]|
| this code stops at the 473th file instead of reaching 1398
In what way does it stop? Exception and traceback?
| however I changed the for and substituted it with a while in this way
|
| while cachefilesSet:
| fn = cachefilesSet.pop()
| .......
| .......
|
| the while loop reaches the 1398th file and is some 3-4 times faster than
| the for loop
Perhaps you have a broken installation. What version,system,compiler?
tjr
More information about the Python-list
mailing list