Allowing non-ASCII identifiers

"Martin v. Löwis" martin at
Fri Feb 13 10:02:06 CET 2004

Brian Quinlan wrote:
> I think that Python should borrow the C# identifier syntax verbatim. That
> way we can have code that looks like this:
> class @class:
>     def @def(@def):
>         pass
> cl\u0061ss.d\u0065f(true)

If I ever get to write a PEP on this, I'll happily copy the second
syntax. I'm not sure I like the first one, and there are plenty
conventions to get around the restriction (e.g. in Tkinter, you add
an underscore if a Tcl property is a Python keyword).


More information about the Python-list mailing list