Why is the logic for .isalpha() and .isnumeric() not the same ...
www.reddit.com › r › learnpythonit is in python3 as strings are unicode by default so the distinction between str and unicode is not there. In python 2 str.isdigit() would be analoguous to str.isalpha(). unicode.isnumeric() is like a unicode aware superset of isdigit() that returns everything that is numeric in the broadest sense of the word, eg glyphs for numbers in any form in any language, eg roman numbers and what have you.
Introduction to Python Programming
https://books.google.no › booksdir(str) ['__add__', '__ge__', '__init_subclass__', '__iter__', '__le__', ... '__doc__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', ...