Dictionary invalid token error

brad byte8bits at gmail.com
Tue Oct 2 17:00:14 CEST 2007


Tim Chase wrote:
> Numbers with leading zeros are parsed as octal.  8 and 9 are invalid 
> digits in octal.  Thus, it falls over.  00 through 07 will work fine, 
> but 08 and 09 will go kaput.
> 
> http://docs.python.org/ref/integers.html
> 
> -tkc

Thanks... that makes sense. I'll store them as strings.



More information about the Python-list mailing list