PEP 3131: Supporting Non-ASCII Identifiers

Stefan Behnel stefan.behnel-n05pAM at web.de
Mon May 14 08:33:31 EDT 2007


Duncan Booth wrote:
> Alexander Schmolck <a.schmolck at gmail.com> wrote:
> 
>> scheme (major implementations such as PLT and the upcoming standard),
>> the most popular common lisp implementations, haskell[1], fortress[2],
>> perl 6 and I should imagine (but haven't checked) all new java or .NET
>> based languages (F#, IronPython, JavaFX, Groovy, etc.) as well -- the
>> same goes for XML-based languages.
>>
> 
> Just to confirm that: IronPython does accept non-ascii identifiers. From 
> "Differences between IronPython and CPython":
> 
>> IronPython will compile files whose identifiers use non-ASCII
>> characters if the file has an encoding comment such as "# -*- coding:
>> utf-8 -*-".  CPython will not compile such a file in any case.

Sounds like CPython would better follow IronPython here.

Stefan



More information about the Python-list mailing list