Why gives "k = 09" a syntax error ?

Mensanator mensanator at aol.com
Wed Oct 29 22:45:21 CET 2008


On Oct 29, 4:25 pm, Terry Reedy <tjre... at udel.edu> wrote:
> Stef Mientki wrote:
> > hello,
>
> > Why gives "k = 09"  a syntax error ?
>
> You have gotten the 2.x answer.  In 3.0, 0b,0o,0x prefixes are valid and
> required for binary, octal, and hexadecimal literals.  0digits is invalid.
>
> tjr

Is it documented? :-)



More information about the Python-list mailing list