Alex Martelli wrote: > Wrong syntax -- needs to be: > > lines = [(get_fields(line), line) for line in open("imputfilename")] Bah! I all too often forget that () on the LHS of the list comprehension. :( Andrew dalke at dalkescientific.com