[Python-Dev] Generalised String Coercion

"Martin v. Löwis" martin at v.loewis.de
Sun Aug 7 14:53:21 CEST 2005


Guido van Rossum wrote:
> The main problem for a smooth Unicode transition remains I/O, in my
> opinion; I'd like to see a PEP describing a way to attach an encoding
> to text files, and a way to decide on a default encoding for stdin,
> stdout, stderr.

If stdin, stdout and stderr go to a terminal, there already is a
default encoding (actually, there always is a default encoding on
these, as it falls back to the system encoding if its not a terminal,
or if the terminal's encoding is not supported or cannot be determined).

Regards,
Martin


More information about the Python-Dev mailing list