Message80984
They don't crash. They raise a SyntaxError because the "08" and "09"
are invalid octal literals.
If you're working with decimal literals that are padded on the left with
zeroes, those need to be stripped off before conversion:
'000987'.lstrip('0') --> '987'
Or, you can use the int() function:
int('000987') |
|
Date |
User |
Action |
Args |
2009-02-02 19:02:56 | rhettinger | set | recipients:
+ rhettinger, davidnicol |
2009-02-02 19:02:56 | rhettinger | set | messageid: <1233601376.55.0.765953972079.issue5133@psf.upfronthosting.co.za> |
2009-02-02 19:02:54 | rhettinger | link | issue5133 messages |
2009-02-02 19:02:54 | rhettinger | create | |
|