This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients docs@python, krichter, r.david.murray
Date 2015-10-11.15:46:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444578415.69.0.983788091857.issue25377@psf.upfronthosting.co.za>
In-reply-to
Content
The main docs do not mention octal, but instead point to the constants in the stat module.  The help text currently says "Operating-system mode bitfield", which is in fact accurate.  A decimal number is *not* a bitfield (although it can be interpreted as one, giving the unexpected results).  

However, the help doc could be enhanced to say "Operating-system mode bitfield, see stat module for symbolic constants.".

Basically, the fact that octal works is an historical accident due to it working that way on unix, but ideally should not be relied upon by python code (though of course it will be :).
History
Date User Action Args
2015-10-11 15:46:55r.david.murraysetrecipients: + r.david.murray, docs@python, krichter
2015-10-11 15:46:55r.david.murraysetmessageid: <1444578415.69.0.983788091857.issue25377@psf.upfronthosting.co.za>
2015-10-11 15:46:55r.david.murraylinkissue25377 messages
2015-10-11 15:46:55r.david.murraycreate