python3 - the hardest hello world ever ?

Paul Boddie paul at
Thu Oct 16 14:28:41 CEST 2008

On 16 Okt, 11:28, Helmut Jarausch <jarau... at>
> I meant setting the default encoding which is used by print (e.g.) when
> outputting the internal unicode string to a file.
> As far as I understood, currently I am fixed to setting either
> the 'locale' or to switch settings for each output file (by settting
> the _encoding property.
> I wished I could override the locale settings within a Python script.

You could use the locale module. ;-)

But seriously, I'd like to know whether the program I posted works
with Python 2.x because there could be differences between 2.x and
3.x, and we'd obviously like to solve your problems regardless of
which Python version you're using.


More information about the Python-list mailing list