New submission from Raymond Hettinger: Here's a proof-of-concept patch. If approved, will change from generator form to match the other readers and will add a test suite.
The idea corresponds to what is currently done by the dict reader but returns a space and time efficient named tuple instead of a dict. Field order is preserved and named attribute access is supported. A writer is not needed because named tuples can be feed into the existing writer just like regular tuples. ---------- assignee: barry components: Library (Lib) files: ntreader.diff messages: 59866 nosy: barry, rhettinger severity: normal status: open title: Add named tuple reader to CSV module versions: Python 2.6 Added file: http://bugs.python.org/file9151/ntreader.diff __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1818> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com