News for hackers. Stuff that matters.
Re:So you think you know what a number is by Veedrac on Friday April 28, 2017 @02:13PM (#14221749)
Note that Python has str.isdecimal, str.isdigit and str.isnumeric.

                isdecimal    isdigit   isnumeric

    12345        True        True       True
    ១2߃໔5        True        True       True
    ①²³🄅₅       False       True       True
    ⑩⒓          False       False      True
    Five         False       False      False
Use isdecimal if you want to call `int` (though it's EAFTP).
Re:So you think you know what a number is by detaro on Friday April 28, 2017 @02:15PM (#14221759)
Don't forget to special case negative numbers though.