This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients StyXman, mark.dickinson, steven.daprano
Date 2019-02-24.10:14:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551003290.31.0.342727250765.issue36100@roundup.psfhosted.org>
In-reply-to
Content
[Steven posted his answer while I was composing mine; posting mine anyway ...]

I don't think this would make sense. There are lots of characters that can't be interpreted as a decimal digit but for which `isnumeric` nevertheless gives True.

>>> s = "㉓⅗⒘Ⅻ"
>>> for c in s: print(unicodedata.name(c))
... 
CIRCLED NUMBER TWENTY THREE
VULGAR FRACTION THREE FIFTHS
NUMBER SEVENTEEN FULL STOP
ROMAN NUMERAL TWELVE
>>> s.isnumeric()
True

What value would you expect `int(s)` to have in this situation?

Note that `int` and `float` already accept non-ASCII digits:

>>> s = "١٢٣٤٥٦٧٨٩"
>>> int(s)
123456789
>>> float(s)
123456789.0
History
Date User Action Args
2019-02-24 10:14:50mark.dickinsonsetrecipients: + mark.dickinson, StyXman, steven.daprano
2019-02-24 10:14:50mark.dickinsonsetmessageid: <1551003290.31.0.342727250765.issue36100@roundup.psfhosted.org>
2019-02-24 10:14:50mark.dickinsonlinkissue36100 messages
2019-02-24 10:14:50mark.dickinsoncreate