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 | <1216920778.3.0.864381429815.issue3359@psf.upfronthosting.co.za> |
| 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:58 | techtonik | set | spambayes_score: 0.0782656 -> 0.07826564 recipients: + techtonik, skip.montanaro, georg.brandl, amaury.forgeotdarc |
| 2008年07月24日 17:32:58 | techtonik | set | spambayes_score: 0.0782656 -> 0.0782656 messageid: <1216920778.3.0.864381429815.issue3359@psf.upfronthosting.co.za> |
| 2008年07月24日 17:32:57 | techtonik | link | issue3359 messages |
| 2008年07月24日 17:32:57 | techtonik | create | |