Annoying octal notation

James Harris james.harris.1 at googlemail.com
Fri Aug 21 19:23:57 EDT 2009


On 21 Aug, 20:48, Derek Martin <c... at pizzashack.org> wrote:

...

> James Harris wrote:
> > It maybe made sense once but this relic of the past should have been
> > consigned to the waste bin of history long ago.
>
> Sigh.  Nonsense.  I use octal notation *every day*, for two extremely
> prevalent purposes: file creation umask, and Unix file permissions
> (i.e. the chmod() function/command).  

You misunderstand. I was saying that taking a leading zero as
indicating octal is archaic. Octal itself is fine where appropriate.

The chmod command doesn't require a leading zero.

James



More information about the Python-list mailing list