Message289190
My guess is this is supposed to emulate (or is actually the implementation of) the "int" constructor and the Python syntax. In these cases, numbers with leading zeros are disallowed. This was to help with Python 2 porting, where a leading zero specified an octal number.
>>> 010
010
^
SyntaxError: invalid token
>>> int("010", 0)
ValueError: invalid literal for int() with base 0: '010'
Maybe it is better to fix the documentation. |
|
Date |
User |
Action |
Args |
2017-03-07 21:47:26 | martin.panter | set | recipients:
+ martin.panter, cubinator |
2017-03-07 21:47:26 | martin.panter | set | messageid: <1488923246.89.0.545193922108.issue29751@psf.upfronthosting.co.za> |
2017-03-07 21:47:26 | martin.panter | link | issue29751 messages |
2017-03-07 21:47:26 | martin.panter | create | |
|