[Python-Dev] Allowing Unicode literals even without Unicode support?

M.-A. Lemburg mal@lemburg.com
Tue, 28 May 2002 22:03:03 +0200

Guido van Rossum wrote:
> I implemented code that accepts u"..." literals when Unicode is
> disabled, as long as they don't contain \u, \U or \N escapes.  I
> didn't implement a test for regular non-ASCII characters.

Something I forgot last time around: as soon as we have
Python source code encodings, disabling Unicode will no
longer be "easy".

If you still want to proceed with this, then please add the
test for ASCII-compatibility, since otherwise code can easily
become non-portable between Python Unicode/non-Unicode builds
anymore without anyone noticing.

Marc-Andre Lemburg
CEO eGenix.com Software GmbH
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/
Meet us at EuroPython 2002:                 http://www.europython.org/