[Python-ideas] Allow using symbols from Unicode block "Superscripts and Subscripts" in identifiers

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri May 2 23:17:33 CEST 2014


On Fri, May 2, 2014 at 3:34 PM, Roman Inflianskas <infroma at gmail.com> wrote:

> I would like to use symbols from block "Superscripts and Subscripts"


-1

Python uses ** operator for what is superscript in math and [] operator for
what is subscript.  Allowing sub/superscripts in identifiers will create
confusion.  (It is not uncommon to mix typeset math with python code in
generated documentation.)

If you have many identifiers with subscripts, I would recommend using a
list or a dictionary and call them a[1], a[2], etc. instead of a<sub>1,
a<sub>2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140502/c33a6a05/attachment.html>


More information about the Python-ideas mailing list