[Python-ideas] CSV api with conversion
Éric Araujo
merwok at netwok.org
Mon Apr 12 12:24:57 CEST 2010
Hello list
This API would be very useful. (I’m using Python right know to filter
hundreds of spreadsheets records. Loving it.)
Suggestions:
1) Name the argument “converters” (it’s an iterable);
2) Make it a positional argument.
Related wish: Add an argument for a row factory. Default would be list,
and use cases include using tuple, a named tuple class, or any custom
callable.
Adding converters and rowfactory would remove the need for looping over
CSV reader objects and manually using row and cell converters.
Cheers
More information about the Python-ideas
mailing list