[New-bugs-announce] [issue7450] document that os.chmod accepts an octal digit mode

clutchski report at bugs.python.org
Mon Dec 7 16:54:20 CET 2009


New submission from clutchski <clutchski at gmail.com>:

It would be helpful to explicitly document that os.chmod accepts octal
digit modes e.g. os.chmod(path, 0755). This is much more user friendly
than saying you must OR bit constants kept in a completely different module.

It could be argued that this change would be make the abstraction leaky,
since the values of the stat.S_I* constants could change, but in
practice, this seems unlikely.

----------
assignee: georg.brandl
components: Documentation
messages: 96060
nosy: clutchski, georg.brandl
severity: normal
status: open
title: document that os.chmod accepts an octal digit mode

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7450>
_______________________________________


More information about the New-bugs-announce mailing list