<font class="Apple-style-span" face="'courier new', monospace">If you do this, you'll probably want to support mapping empty values. That is,</font><div><font class="Apple-style-span" face="'courier new', monospace"><br>

</font></div><div><font class="Apple-style-span" face="'courier new', monospace">[int,str]</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">could map</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">1,</font></div><div><font class="Apple-style-span" face="'courier new', monospace">,2</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">to </font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>

</font></div><div><font class="Apple-style-span" face="'courier new', monospace">[1,None]</font></div><div><font class="Apple-style-span" face="'courier new', monospace">[None,'2']<br clear="all">
<br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace">or</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">[1,'']</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace">[0,'2']</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">I'm not sure what the defaults should be but there are reasonable use cases for both.</font></div>

<div><font class="Apple-style-span" face="'courier new', monospace"><br>--- Bruce<br><a href="http://www.vroospeak.com">http://www.vroospeak.com</a></font><br>
<br><br><div class="gmail_quote">On Mon, Apr 12, 2010 at 3:24 AM, Éric Araujo <span dir="ltr"><<a href="mailto:merwok@netwok.org">merwok@netwok.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello list<br>
<br>
This API would be very useful. (I’m using Python right know to filter hundreds of spreadsheets records. Loving it.)<br>
<br>
Suggestions:<br>
1) Name the argument “converters” (it’s an iterable);<br>
2) Make it a positional argument.<br>
<br>
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.<br>
<br>
Adding converters and rowfactory would remove the need for looping over CSV reader objects and manually using row and cell converters.<br>
<br>
Cheers<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</blockquote></div><br></div>