I wonder whether the following be more efficient if DB was a
dictionnary:

Splits = (line.split(' ') for line in open('file.text', 'r'))
DB = dict([(S[0], S[-1]) for S in Splits])
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to