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 StyXman
Recipients StyXman
Date 2019-02-24.09:02:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550998942.15.0.168903018656.issue36100@roundup.psfhosted.org>
In-reply-to
Content
Following https://blog.lerner.co.il/pythons-str-isdigit-vs-str-isnumeric/, we have this:

Python 3.8.0a1+ (heads/master:001fee14e0, Feb 20 2019, 08:28:02)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '一二三四五'.isnumeric()
True

>>> int('一二三四五')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '一二三四五'

>>> float('一二三四五')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: could not convert string to float: '一二三四五'

I think Reuven is right, these should be accepted as input. I just wonder if we should do the same for f.i. roman numerics...
History
Date User Action Args
2019-02-24 09:02:22StyXmansetrecipients: + StyXman
2019-02-24 09:02:22StyXmansetmessageid: <1550998942.15.0.168903018656.issue36100@roundup.psfhosted.org>
2019-02-24 09:02:22StyXmanlinkissue36100 messages
2019-02-24 09:02:22StyXmancreate