Python has the function for string to test whether all characters are digits: string.isdigit()
.
In the manual is written:
For 8-bit strings, this method is locale-dependent
How is this method locale-depedent? In what locales are there digits that are outside the 0-9 range?
Also, if this is locale dependent, does python have a method for checking it with a specific locale (i.e. only 0-9 digits).