[issue18740] str is number methods don't recognize '.'

Ned Deily report at bugs.python.org
Wed Aug 14 19:20:51 CEST 2013


Ned Deily added the comment:

isdecimal() is working as documented, isn't it?  A period character serving as a decimal point is not the same as a decimal character.

"Return true if all characters in the string are decimal characters and there is at least one character, false otherwise. Decimal characters are those from general category “Nd”. This category includes digit characters, and all characters that can be used to form decimal-radix numbers, e.g. U+0660, ARABIC-INDIC DIGIT ZERO."

----------
nosy: +ned.deily

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


More information about the Python-bugs-list mailing list