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, xtreak
Date 2019-02-24.10:57:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551005860.15.0.254276561879.issue36100@roundup.psfhosted.org>
In-reply-to
Content
> So to check if a string can be converted to integer with help of int() I should be using str.isdecimal() instead of str.isnumeric() ?

Yes, I think that's correct. The characters matched by `str.isdecimal` are a subset of those matched by `str.isdigit`, which in turn are a subset of those matched by `str.isnumeric`. `int` and `float` required general category Nd, which corresponds to `str.isdigit`.
History
Date User Action Args
2019-02-24 10:57:40mark.dickinsonsetrecipients: + mark.dickinson, StyXman, steven.daprano, xtreak
2019-02-24 10:57:40mark.dickinsonsetmessageid: <1551005860.15.0.254276561879.issue36100@roundup.psfhosted.org>
2019-02-24 10:57:40mark.dickinsonlinkissue36100 messages
2019-02-24 10:57:40mark.dickinsoncreate