Annoying octal notation

James Harris james.harris.1 at googlemail.com
Sun Aug 23 20:11:36 CEST 2009


On 21 Aug, 00:59, James Harris <james.harri... at googlemail.com> wrote:

...

> > Is there some magic to make the 2.x CPython interpreter to ignore the
> > annoying octal notation?
> > I'd really like 012 to be "12" and not "10".
>
> This is (IMHO) a sad hangover from C (which took it from B ...

This seemed worth writing up so I've taken the snipped comments and
posted them at

  http://sundry.wikispaces.com/octal-zero-prefix

The idea is that the page can be pointed to any time the issue comes
up again.

I've also fleshed the comments out a bit.

James



More information about the Python-list mailing list