python3 - the hardest hello world ever ?

Helmut Jarausch jarausch at skynet.be
Fri Oct 17 16:29:08 EDT 2008


Ross Ridge wrote:
> Helmut Jarausch  <jarausch at skynet.be> wrote:
>> # but this ugly one (to be done for each output file)
>> sys.stdout._encoding='latin1'
> 
> Is this writable "_encoding" attribute, with a leading underscore (_),
> documented anywhere?  Does it actually work?  Would it happen to be
> supported in 2.5 or 2.6?  The fact that I can't change the encoding
> attribute of sys.stdout/stderr/stdin has caused problems for me in
> the past.
> 

Yes, it does work in python-3.



-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



More information about the Python-list mailing list