homepage

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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, georg.brandl, skip.montanaro, techtonik
Date 2008年07月22日.01:10:38
SpamBayes Score 0.0003022446
Marked as misclassified No
Message-id <1216689041.41.0.626367739134.issue3359@psf.upfronthosting.co.za>
In-reply-to
Content
Did you look at the io.open() function?
It's a new module in python2.6, but also the builtin "open" in py3k!
"""
 * On input, if newline is None, universal newlines mode is
 enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
 these are translated into '\n' before being returned to the
 caller. 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.
"""
I suggest to try
 io.open(filename, newline="")
History
Date User Action Args
2008年07月22日 01:10:42amaury.forgeotdarcsetspambayes_score: 0.000302245 -> 0.0003022446
recipients: + amaury.forgeotdarc, skip.montanaro, georg.brandl, techtonik
2008年07月22日 01:10:41amaury.forgeotdarcsetspambayes_score: 0.000302245 -> 0.000302245
messageid: <1216689041.41.0.626367739134.issue3359@psf.upfronthosting.co.za>
2008年07月22日 01:10:40amaury.forgeotdarclinkissue3359 messages
2008年07月22日 01:10:38amaury.forgeotdarccreate

AltStyle によって変換されたページ (->オリジナル) /