Why gives "k = 09" a syntax error ?

Andrii V. Mishkovskyi mishok13 at gmail.com
Wed Oct 29 15:34:17 EDT 2008


2008/10/29 Stef Mientki <stef.mientki at gmail.com>:
> hello,
>
> Why gives "k = 09"  a syntax error ?

Because leading zero means that the number is octal, and there is no 9
among octal digits. :)

>
> thanks,
> Stef Mientki
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Wbr, Andrii Mishkovskyi.

He's got a heart of a little child, and he keeps it in a jar on his desk.



More information about the Python-list mailing list