os.linesep under Windows

Aahz Maruch aahz at netcom.com
Tue May 30 16:30:07 EDT 2000

In article <g668jso41eos8lt8viea79f9g733ilihl1 at 4ax.com>,
Brandon Irons  <brandonirons at topmail.de> wrote:
>  import os
>  import sys
>  sys.stdout.write( os.linesep )
>  Under Windows, run this program with:
>  python test.py > huh.txt

Try opening a file explicitly in binary mode.
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Have you coined a word today?  --Aahz

More information about the Python-list mailing list