Why does Python 3 allow \"00\" as a literal for 0 but not allow \"01\" as a literal for 1? Is there a good reason? This inconsistency baffles me. (And we\'re talking about P
Python2 used the leading zero to specify octal numbers:
>>> 010 8
To avoid this (misleading?) behaviour, Python3 requires explicit prefixes 0b, 0o, 0x:
0b
0o
0x
>>> 0o10 8