Re: Why gives "k = 09" a syntax error ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guilherme Polo

    #1

    Re: Why gives "k = 09" a syntax error ?

    On 10/29/08, Stef Mientki <stef.mientki@g mail.comwrote:
    hello,
    >
    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.

    --
    -- Guilherme H. Polo Goncalves
Working...