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 techtonik
Recipients amaury.forgeotdarc, georg.brandl, skip.montanaro, techtonik
Date 2008-07-24.17:32:56
SpamBayes Score 0.07826564
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
This '\r' makes things worse. I am also on Windows and didn't thought
that "rb" processes '\r\n' linefeeds as a side-effect of '\n' being the
last character. Thanks.

newline='' is just what I need. I guess there is no alternative to it in
2.5 series except splitting lines returned from binary read manually.
What about file.newlines attribute - is it preserved in 2.6/Py3k?

BTW, it would be nice to have this example in manual.
History
Date User Action Args
2008-07-24 17:32:58techtoniksetspambayes_score: 0.0782656 -> 0.07826564
recipients: + techtonik, skip.montanaro, georg.brandl, amaury.forgeotdarc
2008-07-24 17:32:58techtoniksetspambayes_score: 0.0782656 -> 0.0782656
messageid: <[email protected]>
2008-07-24 17:32:57techtoniklinkissue3359 messages
2008-07-24 17:32:57techtonikcreate