Message196413
> 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 |
|
Date |
User |
Action |
Args |
2013-08-28 20:20:31 | pitrou | set | recipients:
+ pitrou, benjamin.peterson, r.david.murray, docs@python, valhallasw |
2013-08-28 20:20:31 | pitrou | set | messageid: <1377721231.63.0.0300050247602.issue18870@psf.upfronthosting.co.za> |
2013-08-28 20:20:31 | pitrou | link | issue18870 messages |
2013-08-28 20:20:31 | pitrou | create | |
|