[Python-3000] Support for PEP 3131

Jim Jewett jimjjewett at gmail.com
Fri May 25 19:59:48 CEST 2007


On 5/25/07, Steve Howell <showell30 at yahoo.com> wrote:


> This happens to me about once a month, and I
> forget exactly what Python does when I try to run the
> program where one identifier has the accented e, and a
> later identifier doesn't.

It *should* throw up a syntax error.  If both letters were valid, it
would silently create a second identifier, and you would have some fun
tracking down the bug.

I say "*should*" because, at the moment, it seems to accept some
additional characters, in at least some environments.  In particular,
using Idle from 2.5.0, I just noticed that I can apparently use at
least some Latin-1 characters.

>>> ó = 5
>>> print ó
5

>>> ¿=7
SyntaxError: invalid syntax
>>> Æ=7
>>> Æ
7

[And no, this doesn't mean "it's already in use; no big deal", because
the Latin-1 characters are not the biggest concern.]

-jJ


More information about the Python-3000 mailing list