Message336459
| 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:40 | mark.dickinson | set | recipients: + mark.dickinson, StyXman, steven.daprano, xtreak |
| 2019-02-24 10:57:40 | mark.dickinson | set | messageid: <1551005860.15.0.254276561879.issue36100@roundup.psfhosted.org> |
| 2019-02-24 10:57:40 | mark.dickinson | link | issue36100 messages |
| 2019-02-24 10:57:40 | mark.dickinson | create | |