Message252818
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 :). |
|
Date |
User |
Action |
Args |
2015-10-11 15:46:55 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, krichter |
2015-10-11 15:46:55 | r.david.murray | set | messageid: <1444578415.69.0.983788091857.issue25377@psf.upfronthosting.co.za> |
2015-10-11 15:46:55 | r.david.murray | link | issue25377 messages |
2015-10-11 15:46:55 | r.david.murray | create | |
|