Hallöchen!
Martin v. Löwis writes:
>> In <[EMAIL PROTECTED]>, Nick Craig-Wood
>> wrote:
>>
>>> My initial reaction is that it would be cool to use all those
>>> great symbols. A variable called OHM etc!
>>
>> This is a nice candidate for homoglyph confusion. There's the
>> Greek letter omega (U+03A9) Ω and the SI unit symbol (U+2126) Ω,
>> and I think some omegas in the mathematical symbols area too.
>
> Under the PEP, identifiers are converted to normal form NFC, and
> we have
>
> py> unicodedata.normalize("NFC", u"\u2126")
> u'\u03a9'
>
> So, OHM SIGN compares equal to GREEK CAPITAL LETTER OMEGA. It can't
> be confused with it - it is equal to it by the proposed language
> semantics.
So different unicode sequences in the source code can denote the
same identifier?
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: [EMAIL PROTECTED]
(See http://ime.webhop.org for ICQ, MSN, etc.)
--
http://mail.python.org/mailman/listinfo/python-list