[Python-ideas] Visually confusable unicode characters in identifiers

Stephen J. Turnbull stephen at xemacs.org
Tue Oct 2 10:04:55 CEST 2012


Ben Finney writes:

 > Solve the keyboard input problem in the OS layer – as someone who
 > anticipates working with non-ASCII characters must already do – and you
 > solve it for Python code as well.

That simply isn't true for symbol characters and Greek letters.  I
still let either TeX or XEmacs translate TeX macros for me.  I don't
even know how to type an integral sign in Mac OS X Terminal
(conveniently, that is -- of course there's always the character
palette), and if I wanted directed quotation marks (I don't), I'd just
use ASCII quotes and let XEmacs translate those, too.

There ought to be a standard way to get those symbols and punctuation,
preferably ASCII-based, on any terminal, using the standard Python
interpreter.




More information about the Python-ideas mailing list