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 mark.dickinson
Recipients ezio.melotti, l0nwlf, mark.dickinson, ned.deily, vstinner
Date 2010-04-03.22:25:43
SpamBayes Score 1.574983e-05
Marked as misclassified No
Message-id <1270333545.82.0.556420422874.issue8307@psf.upfronthosting.co.za>
In-reply-to
Content
I realize that the above doesn't really explain why the NameError is occurring:

Python's token recognition algorithm, in tok_get in tokenizer.c, uses isalpha, which is locale-aware.  In particular, it seems that chr(255) is considered alphabetic in the UTF-8 codeset, and not in ASCII.

Should this instance of isalpha be replaced by something that's not locale aware?  I'm not sure what the rules are supposed to be in 2.x for recognising identifiers.
History
Date User Action Args
2010-04-03 22:25:46mark.dickinsonsetrecipients: + mark.dickinson, vstinner, ned.deily, ezio.melotti, l0nwlf
2010-04-03 22:25:45mark.dickinsonsetmessageid: <1270333545.82.0.556420422874.issue8307@psf.upfronthosting.co.za>
2010-04-03 22:25:44mark.dickinsonlinkissue8307 messages
2010-04-03 22:25:44mark.dickinsoncreate