Well, I finally ran into a Python Unicode problem, sort of

Marko Rauhamaa marko at pacujo.net
Sun Jul 3 03:26:51 EDT 2016


Lawrence D’Oliveiro <lawrencedo99 at gmail.com>:

> It wasn’t the “π” it was complaining about...

The question is why π is accepted but ∇ is not.

The immediate reason is that π is a letter while ∇ is not. But the
question, then, is why bother excluding nonletters from identifiers.

Personally, I don't think even π should be used in identifiers.
Mathematicians and physicists have a questionable tradition of using
single-character identifiers in their formulas. That shouldn't be
transported to programming.


Marko



More information about the Python-list mailing list