pymemcache
pymemcache copied to clipboard
_parse_hex function should declare the base as 16 not 8
https://github.com/pinterest/pymemcache/issues/633
It looks like some users of this function were expecting the octal behavior.
Ok, then, shouldn't the function be called "_parse_oct" rather than "_parse_hex" ?
Ok, then, shouldn't the function be called "_parse_oct" rather than "_parse_hex" ?
I think so. Or there should be two functions, and the callers should use the one they need.
I also don't see a reason why the callers couldn't just use int(...) directly.