'oct' should also be added:
>>> oct(45) '055'
>>> int('055', 8) 45
In fact you almost can't write a program without using them inadvertently. :)
'oct' should also be added:
One caveat: Python doesn't assume the leading '0' indicates that the number is octal, so you must specify radix 8: