Message83381
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 |
|
Date |
User |
Action |
Args |
2009-03-09 14:08:27 | skip.montanaro | set | recipients:
+ skip.montanaro, georg.brandl, sjmachin, pitrou, vstinner, jaywalker, jdwhitley |
2009-03-09 14:08:25 | skip.montanaro | link | issue4847 messages |
2009-03-09 14:08:25 | skip.montanaro | create | |
|