Martin v. Löwis added the comment:

As you say, the unicode-escape codec is tied to the Python language definition. 
So if the language changes, the codec needs to change as well. 

A Unicode literal in source code might be using any encoding, so to be on the 
safe side, restricting it to ASCII is meaningful. Or else, if we want to use 
the default source encoding (as it did in 2.x), we should assume UTF-8 (per PEP 
3120). Using ISO-8859-1 is clearly wrong for 3.x.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21331>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to