Closed valschneider closed 5 years ago
I realized that this initial version didn't accept things like "-0x42". Then I looked at the doc of int()
and found this:
Base 0 means to interpret exactly as a code literal,
So I'm just doing int(string, base=0)
now.
LGTM
Fixes a bug reported by @derkling, details in the commit log.