> Once a csv file has been read by a csv reader (such as DictReader), it's > no longer a csv file.
That was an "Aha!" moment for me. The file is on disk, each row of it is in memory as a list or dict, and it's the list or dict that matters. It's so obvious now. Thanks Dave. > a namedtuple is probably exactly what you want. I read this as meaning that while tuples themselves are immutable, to effectively modify it I simply delete it and replace it with a new tuple with new values. Another 'Aha!' Trung
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor