[Python-Dev] Generalised String Coercion

Guido van Rossum gvanrossum at gmail.com
Mon Aug 8 02:03:02 CEST 2005


[me]
> > a way to decide on a default encoding for stdin,
> > stdout, stderr.

[Martin]
> 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).

So there is. Wow! I never kew this. How does it work? Can we use this
for writing to files to?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list