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 skip.montanaro
Recipients georg.brandl, jaywalker, jdwhitley, pitrou, sjmachin, skip.montanaro, vstinner
Date 2009-03-09.14:08:25
SpamBayes Score 6.5265704e-07
Marked as misclassified No
Message-id <18869.8918.504197.519819@montanaro.dyndns.org>
In-reply-to <1236578536.52.0.795400385325.issue4847@psf.upfronthosting.co.za>
Content
John> Options for 3.X:
    John> (1) caller uses mode 'rb', is given bytes objects back.
    John> (2) caller uses mode 'rt' and provides an encoding, is given str
    John>     objects back.

I believe #1 is the only correct option.  If you open a file in text mode
the low-level file reading code will unify all line endings to \n.  I don't
believe it's possible to override that behavior.

Skip
History
Date User Action Args
2009-03-09 14:08:27skip.montanarosetrecipients: + skip.montanaro, georg.brandl, sjmachin, pitrou, vstinner, jaywalker, jdwhitley
2009-03-09 14:08:25skip.montanarolinkissue4847 messages
2009-03-09 14:08:25skip.montanarocreate