Closed ioistired closed 4 years ago
Nice, I wasn't aware of these.
I think we'd want to use str.isdecimal()
instead of str.isnumeric()
though, because isnumeric
also includes "all characters that have the Unicode numeric value property" according to the Python docs.
Good catch. I knew that isnumeric supported unicode but I didn't know about isdecimal() or that isnumeric() doesn't line up with what int() accepts.
urllib.parse replaces util.urldecode/util.urlencode, and int()/str.isnumeric() replaces util.is_numeric.