This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients davidnicol, rhettinger
Date 2009-02-02.19:02:54
SpamBayes Score 1.3658154e-06
Marked as misclassified No
Message-id <1233601376.55.0.765953972079.issue5133@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2009-02-02 19:02:56rhettingersetrecipients: + rhettinger, davidnicol
2009-02-02 19:02:56rhettingersetmessageid: <1233601376.55.0.765953972079.issue5133@psf.upfronthosting.co.za>
2009-02-02 19:02:54rhettingerlinkissue5133 messages
2009-02-02 19:02:54rhettingercreate