This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients lukasz.langa, mrblabla
Date 2012-01-23.17:17:36
SpamBayes Score 4.7324497e-07
Marked as misclassified No
Message-id <1327339057.22.0.631866264436.issue13190@psf.upfronthosting.co.za>
In-reply-to
Content
That is indeed the behaviour. Citing the tutorial: "Python on Windows makes a distinction between text and binary files; the end-of-line characters in text files are automatically altered slightly when data is read or written."

When you're opening the file in binary mode, \n characters are not altered. Opening a file that way specifies programmer intent and I don't think we should force os.linesep in that case.
History
Date User Action Args
2012-01-23 17:17:37lukasz.langasetrecipients: + lukasz.langa, mrblabla
2012-01-23 17:17:37lukasz.langasetmessageid: <1327339057.22.0.631866264436.issue13190@psf.upfronthosting.co.za>
2012-01-23 17:17:36lukasz.langalinkissue13190 messages
2012-01-23 17:17:36lukasz.langacreate