[Csv] csv.writer, file must be binary mode...

Skip Montanaro skip at pobox.com
Wed Feb 12 16:02:45 CET 2003


    Andrew> A posting by Tim Peters on the Python list reminded me that
    Andrew> csv.writer() is not the only module that requires it be passed a
    Andrew> file in binary module - Pickle is classic example.

On second thought, the only reason Pickle requires binary mode is when the
binary pickle format is selected, right?  Hmmm...  I don't think we really
need to say "Pickle requires binary mode, so we can too."

Skip


More information about the Csv mailing list