Mark Dickinson <dicki...@gmail.com> added the comment:

> 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`.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to