[Python-ideas] Visually confusable unicode characters in identifiers

Georg Brandl g.brandl at gmx.net
Mon Oct 1 22:03:21 CEST 2012


On 10/01/2012 09:33 PM, Mathias Panzenböck wrote:
> On 10/01/2012 07:48 PM, Georg Brandl wrote:
>> On 10/01/2012 07:02 PM, Mathias Panzenböck wrote:
>>> On 10/01/2012 06:43 PM, Robert Kern wrote:
>>>> On 10/1/12 5:07 PM, Mathias Panzenböck wrote:
>>>>> I still don't understand why unicode characters are allowed at all in identifier
>>>>> names. Is the reason for this written down somewhere?
>>>>
>>>> http://www.python.org/dev/peps/pep-3131/#rationale
>>>>
>>>
>>> But the Python keywords and more importantly the documentation is English. Don't you need to be able
>>> to speak/write English in order to code Python anyway? And if you keep you code+comments English you
>>> can access a much larger developer pool (all developers who speak English should by my hypothesis be
>>> a superset of all developers who speak a certain language).
>>
>> Please; the PEP has been discussed quite a lot when it was proposed,
>> and believe me, yours is not an unfamiliar argument :)  You're about
>> 5 years late.
>>
>> Georg
>>
>
> I didn't want to start a discussion. I just wanted to know why one would implement such a language
> feature.

Well, in that case I would have said "read the PEP": I think it's well
explained there.

Georg





More information about the Python-ideas mailing list