PEP 3131: Supporting Non-ASCII Identifiers

"Martin v. Löwis" martin at v.loewis.de
Thu May 17 18:04:10 EDT 2007


>> At the same time it takes some mental effort to analyze and understand
>> all the implications of a feature, and without taking that effort
>> "something" will always beat "nothing".
>>
> Indeed. For example, getattr() and friends now have to accept Unicode
> arguments, and presumably to canonicalize correctly to avoid errors, and
> treat equivalent Unicode and ASCII names as the same (question: if two
> strings compare equal, do they refer to the same name in a namespace?).

Actually, that is not an issue: In Python 3, there is no data type for
"ASCII string" anymore, so all __name__ attributes and __dict__ keys
are Unicode strings - regardless of whether this PEP gets accepted
or not (which it just did).

Regards,
Martin



More information about the Python-list mailing list