os.linesep under Windows

Fred L. Drake, Jr. fdrake at acm.org
Tue May 30 22:24:14 CEST 2000

Brandon Irons writes:
 >   So what use is os.linesep if it works in a useless manner under
 > Windows?

  This isn't the way to use os.linesep.   Most of the time you won't
need os.linesep at all; it's largely defined to be informative for
those applications that do need it.  For all text-mode files, '\n' is
converted to the host-specific line separator by the underlying C
libraries; that's the portable approach and should be used in most


Fred L. Drake, Jr.  <fdrake at acm.org>

More information about the Python-list mailing list