This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, docs@python, pitrou, r.david.murray, valhallasw
Date 2013-08-28.20:20:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377721231.63.0.0300050247602.issue18870@psf.upfronthosting.co.za>
In-reply-to
Content
> Since the default source encoding in python2 is latin-1

Mmh, really? According to PEP 263:

    Python will default to ASCII as standard encoding if no other
    encoding hints are given.

And indeed when trying Merlijn's code in a .py file rather than an eval() call, I get:

SyntaxError: Non-ASCII character '\xc3' in file tcc.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
History
Date User Action Args
2013-08-28 20:20:31pitrousetrecipients: + pitrou, benjamin.peterson, r.david.murray, docs@python, valhallasw
2013-08-28 20:20:31pitrousetmessageid: <1377721231.63.0.0300050247602.issue18870@psf.upfronthosting.co.za>
2013-08-28 20:20:31pitroulinkissue18870 messages
2013-08-28 20:20:31pitroucreate