python3 - the hardest hello world ever ?

Paul Boddie paul at boddie.org.uk
Wed Oct 15 10:48:12 EDT 2008


On 15 Okt, 12:08, Helmut Jarausch <jarau... at igpm.rwth-aachen.de>
wrote:
>
> What defines me as latin1-user?

What does sys.stdout.encoding say? In Python 2.x, at least, that
attribute should reflect the capabilities of your environment
(specifically, the character encoding) and help determine whether it
makes sense for Python to try and encode Unicode objects (plain
strings in Python 3.x) using a particular output encoding when
printing those objects to the display.

Paul



More information about the Python-list mailing list