.split() Qeustion
random832 at fastmail.us
random832 at fastmail.us
Wed Aug 14 13:05:50 EDT 2013
On Wed, Aug 14, 2013, at 10:32, wxjmfauth at gmail.com wrote:
> I'm always and still be suprised by the number of hard coded
> '\n' one can find in Python code when the portable (here
> win)
>
> >>> os.linesep
> '\r\n'
>
> exists.
Because high-level code isn't supposed to use the os module directly.
Text-mode streams automatically convert newlines you write to them.
More information about the Python-list
mailing list