how to parse hex or decimal int in Python [duplicate] August 4, 2023 by Tarik int("0x123", 0) (why doesn’t int("0x123") do that?)