Re: int() and leading zeros in Python 2.6

2008-11-12 Thread Pete Forman
Peter Otten <[EMAIL PROTECTED]> writes: > you're wrong. Indeed I am, sorry for the waste of time. -- Pete Forman-./\.- Disclaimer: This post is originated WesternGeco -./\.- by myself and does not represent [EMAIL PROTECTED]-./\.- the opinion of Schlumb

Re: int() and leading zeros in Python 2.6

2008-11-12 Thread Peter Otten
Pete Forman wrote: > I'm holding off installing Python 2.6, waiting for some packages to > become available for it. I wonder if someone could tell me the best > way to avoid future problems parsing decimal integers with leading > zeros. You can have multiple versions of python simultaneously.

int() and leading zeros in Python 2.6

2008-11-12 Thread Pete Forman
I'm holding off installing Python 2.6, waiting for some packages to become available for it. I wonder if someone could tell me the best way to avoid future problems parsing decimal integers with leading zeros. >>> int('09') 9 That works in 2.5 but will break in 2.6 AFAIK as int() is being change