Florent Xicluna added the comment: This is consistent:
>>> '¹'.isnumeric(), '¹'.isdigit(), '¹'.isdecimal() (True, True, False) >>> unicodedata.numeric('¹') 1.0 >>> unicodedata.digit('¹') 1 >>> unicodedata.decimal('¹') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: not a decimal >>> Changing the title to focus on the issue with collections.namedtuple. ---------- components: +Library (Lib) title: Fix str methods for detecting digits with unicode -> namedtuple raises a SyntaxError instead of ValueError on invalid identifier versions: +Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17331> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com