os.linesep under Windows
Fred L. Drake, Jr.
fdrake at acm.org
Tue May 30 16:24:14 EDT 2000
Brandon Irons writes:
> So what use is os.linesep if it works in a useless manner under
> Windows?
Brandon,
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
cases.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
More information about the Python-list
mailing list