[Python-3000] New io system and binary data

Eric Smith eric+python-dev at trueblade.com
Thu Sep 20 12:58:31 CEST 2007


Christian Heimes wrote:
> Greg Ewing wrote:
>> Christian Heimes wrote:
>>> With Python 2.5 the input and output data isn't implicitly
>>> converted
>> Are you sure that's always true? What about systems
>> where newlines aren't \n?
> 
> Windows is a strange beast. As far as I can remember the OS converts the
> incoming and outgoing standard streams to Unix line endings \n. A true
> binary standard stream on Windows needs some effort - unfortunately. :(

To be precise, it's not the OS that does this, but rather the C runtime.

Eric.



More information about the Python-3000 mailing list