Why gives "k = 09" a syntax error ?
ggpolo at gmail.com
Wed Oct 29 20:32:03 CET 2008
On 10/29/08, Stef Mientki <stef.mientki at gmail.com> wrote:
> Why gives "k = 09" a syntax error ?
09 is not a valid octal number. Instead use 011.
Ok, I guess you were not aware that prefixing a number with a '0'
would cause python to parse it as an octal and now you know.
> Stef Mientki
-- Guilherme H. Polo Goncalves
More information about the Python-list