codecs.open on Win32 -- converting my newlines to CR+LF

Ryan McGuire usenet at enigmacurry.com
Thu Aug 27 05:40:36 CEST 2009


On Aug 26, 11:04 pm, Philip Semanchuk <phi... at semanchuk.com> wrote:
> Try using "rb" instead of "r" for the mode in the call to open().
>
> HTH
> Philip

That does indeed fix the problem, thanks! Still seems like the docs
are wrong though.



More information about the Python-list mailing list