Hi
I need to process a really huge text file (4GB) and this is what i
need to do. It takes for ever to complete this. I read some where that
"list comprehension" can fast up things. Can you point out how to do
it in this case?
thanks a lot!


f = open('file.txt','r')
for line in f:
        db[line.split(' ')[0]] = line.split(' ')[-1]
        db.sync()
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to