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日.12:39:16 |
| SpamBayes Score | 0.0020127716 |
| Marked as misclassified | No |
| Message-id | <1216903157.59.0.674778603781.issue3359@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Thanks for the hints. It appeared that "universal text mode" is not for crossplatform but for platform-specific programming. =) So I gave it up and ended with my own 'rb' newlines counter and 'wb' writer which inserts lines in required format. As for 2.6 io.open() http://docs.python.org/dev/library/io.html#module-io - can anybody point what's the difference between text mode with newlines='' and binary mode? - the comment about newline=<string> "If it is '', universal newline mode is enabled, but line endings are returned to the caller untranslated. If it has any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated." does it mean that if newline='\r\n' is specified all single '\n' characters are returned inline? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年07月24日 12:39:17 | techtonik | set | spambayes_score: 0.00201277 -> 0.0020127716 recipients: + techtonik, skip.montanaro, georg.brandl, amaury.forgeotdarc |
| 2008年07月24日 12:39:17 | techtonik | set | spambayes_score: 0.00201277 -> 0.00201277 messageid: <1216903157.59.0.674778603781.issue3359@psf.upfronthosting.co.za> |
| 2008年07月24日 12:39:16 | techtonik | link | issue3359 messages |
| 2008年07月24日 12:39:16 | techtonik | create | |