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

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri May 11 06:08:50 EDT 2018


Chris Angelico wrote:
> What do you mean, "another bit"? Currently, the chmod command on my
> system can manage nine primary bits (rwx for each of ugo), plus
> setuid, setgid, and sticky.

I think the idea is that you could regroup those 4 groups
of 3 into 3 groups of 4, and get a nice mapping to hex.
If hex had been the conventional way of writing binary numbers
back then, Ken and Dennis would probably have done it that
way.

Changing it now would require some fairly intimate surgery
on unix, however, which is somewhat beyond the scope of
what Python can achieve.

-- 
Greg



More information about the Python-list mailing list