[issue1141] reading large files
Stefan Sonnenberg-Carstens
report at bugs.python.org
Mon Sep 10 16:29:24 CEST 2007
Stefan Sonnenberg-Carstens added the comment:
Perhaps this is an issue of line separation ?
Could you provide the output of wc -l on a *NIX box ?
And, could you try with this code:
import sys
print(sys.version_info)
import time
print (time.localtime())
fichin=open(r'D:\pythons\16s\total_gb_161_16S.gb')
start = time.time()
for i,li in enumerate(fichin):
if i%1000000==0 and i>0:
print (i,start-time.time())
fichin.close()
print(i)
print(start-time.time())
Thx
----------
nosy: +pythonmeister
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1141>
__________________________________
More information about the Python-bugs-list
mailing list