[Csv] The writer class

Andrew McNamara andrewm at object-craft.com.au
Mon Feb 3 06:35:16 CET 2003


>    Andrew> .... I propose to remove the following code from the writer
>    Andrew> class:
>    ...
>    Andrew> Comments?
>
>Agreed.  This bothered me as well.

Done (damn, forgot to mention that in the check-in comment).

>    Andrew> .... we probably should call it something like "writefields" or
>    Andrew> "write_fields". Comments?
>
>Someone on c.l.py suggested writerow(s).  I sort of liked that.  As you
>noted about write(), both it and append() both carry enough baggage from
>other usage.

I like that. Done.

>    Andrew> What should we call the "writelines" method (that accepts an
>    Andrew> iterable and writes multiple "lines") in this case?
>
>How about "writerow" for the singular and "writerows" for the plural?

Yep. Done.

I've also changed CSVError back to just Error for the sake of consistency,
if nothing else.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/


More information about the Csv mailing list