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

Ryan McGuire usenet at enigmacurry.com
Wed Aug 26 23:40:36 EDT 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