[Python-Dev] Generalised String Coercion

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Sun Aug 7 09:46:31 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.

FWIW, I've already drafted a patch for the former. It lets you write to
file.encoding and honors this when writing Unicode strings to it.

http://www.python.org/sf/1214889

Reinhold

-- 
Mail address is perfectly valid!



More information about the Python-Dev mailing list