[Python-3000] New io system and binary data
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Sep 21 03:00:38 CEST 2007
Bill Janssen wrote:
> Nice idea, but it would have been a tad more true to the origin of the
> names if "stdin", "stderr", and "stdout" were binary (as the re-use of
> those fine names automatically implies to anyone who knows what
> they're doing)
No, the names only imply that to Unix users who are ignorant
of the correct way to use the C stdio library portably.
Right from the beginning, binary mode was an option, and
if you didn't ask for it, you got text mode. The same thing
applies to stdin/out/err. Anyone using them to handle binary
data is and was writing non-portable code.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiem! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-3000
mailing list