[Python-Dev] Python identifiers - was: Python keywords (original) (raw)

Neil Hodgson nhodgson@bigpond.net.au
Tue, 29 Aug 2000 00:22:50 +1000


As well as .NET requiring a mechanism for accessing externally defined identifiers which clash with Python keywords, it would be good to allow access to identifiers containing non-ASCII characters. This is allowed in .NET. C# copies the Java convention of allowing \u escapes in identifiers as well as character/string literals.

Has there been any thought to allowing this in Python? The benefit of this convention over encoding the file in UTF-8 or an 8 bit character set is that it is ASCII safe and can be manipulated correctly by common tools. My interest in this is in the possibility of extending Scintilla and PythonWin to directly understand this sequence, showing the correct glyph rather than the \u sequence.

Neil