enumerate overflow

crwe at post.cz crwe at post.cz
Wed Oct 3 13:46:31 CEST 2007


Hello all,

in python2.4, i read lines from a file with

for lineNum, line in enumerate(f): ...

However, lineNum soon overflows and starts counting backwards. How do
i force enumerate to return long integer?

Cheers.




More information about the Python-list mailing list