[issue16249] unicode name accepts a punctuation glyph

julien tayon report at bugs.python.org
Tue Oct 16 17:56:51 CEST 2012


julien tayon added the comment:

http://www.fileformat.info/info/unicode/char/b7/index.htm

the unicode category is Po (Ponctuation). 

Empirically, it cannot start a variable name so according to the rules given in the lexical analyser it should be one of : Mn, Mc, Nd, Pc

Which is not the case Po not in [ Mn, Mc, Nd, Pc ].

Modulo my weak brain, it does not seem right.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16249>
_______________________________________


More information about the Python-bugs-list mailing list