[issue17331] namedtuple raises a SyntaxError instead of ValueError on invalid identifier
Florent Xicluna
report at bugs.python.org
Sat Mar 2 00:34:46 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue17331>
_______________________________________
More information about the Python-bugs-list
mailing list