[issue25377] Mention octal format of mode argument of os.chmod

2020-06-04 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: I think I was finally able to do a PR for this on 3.10. Requesting a triager to please check because it does not appear as a Documentation change on Github. Thanks -- ___ Python tracker

[issue25377] Mention octal format of mode argument of os.chmod

2020-06-03 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- keywords: +patch nosy: +amaajemyfren nosy_count: 4.0 -> 5.0 pull_requests: +19846 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20621 ___ Python tracker

[issue25377] Mention octal format of mode argument of os.chmod

2020-05-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.7 ___ Python tracker ___ _

[issue25377] Mention octal format of mode argument of os.chmod

2015-10-11 Thread Georg Brandl
Georg Brandl added the comment: A short sentence like Be careful when using number literals for *mode*. The conventional UNIX notation for numeric modes uses an octal base, which needs to be indicated with a ``0o`` prefix in Python. should be a good addition here. (I wonder why it isn't the

[issue25377] Mention octal format of mode argument of os.chmod

2015-10-11 Thread R. David Murray
R. David Murray added the comment: 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,

[issue25377] Mention octal format of mode argument of os.chmod

2015-10-11 Thread Karl Richter
New submission from Karl Richter: `help(os.chmod)` doesn't explain that it expects an octal number for its `mode` argument. This is very confusing for beginners and people who are not involved with filesystems and permissions every day. It doesn't need to be explained, just mentioned, maybe wi