Annoying octal notation

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

On 21 Aug, 00:59, James Harris <james.harri... at> 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

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.


More information about the Python-list mailing list