Leading 0's syntax error in datetime.date module (Python 3.6)

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri May 11 05:40:23 EDT 2018


Chris Angelico wrote:
> Octal makes a lot of sense in the right contexts. Allowing octal
> literals is a Good Thing. And sticking letters into the middle of a
> number doesn't make that much sense, so the leading-zero notation is a
> decent choice.

Also it's easy to forget that octal was a big part of the
PDP-11 culture back then, even though it didn't fit all that
well with a byte-oriented machine, largely due to earlier
PDP models having multiple-of-3 word sizes. Programmers
of that era probably dealt with octal numbers more often
than either hex or decimal.

-- 
Greg



More information about the Python-list mailing list