[issue7450] document that os.chmod accepts an octal digit mode

2010-10-15 Thread Georg Brandl
Georg Brandl added the comment: We now have the S_IXXX constants documented explicitly, so I don't think this change is needed. -- resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue7450] document that os.chmod accepts an octal digit mode

2010-08-07 Thread Ezio Melotti
Ezio Melotti added the comment: I guess you mean 0o755. I think it would be better to mention explicitly octal literals, since they are not so common and, especially in 2.x, 0755 might be confused with a "normal" decimal number. -- ___ Python track

[issue7450] document that os.chmod accepts an octal digit mode

2010-08-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: (3.1.2) 15.1.5. Files and Directories os.chmode entry: I recommend changing the first sentence "Change the mode of path to the numeric mode." to "Change the mode of path to the integer mode (such as 0x755)." For 2.7, delete the 'x'. This should make it clear t

[issue7450] document that os.chmod accepts an octal digit mode

2009-12-07 Thread Ezio Melotti
Ezio Melotti added the comment: If using octal digits instead of the stat.S_I constants is acceptable, I'd be +1 to add a note to the documentation (something like "mode could be a number (possibly expressed in octal form, such as 0755), one of the following values (as defined in the stat module

[issue7450] document that os.chmod accepts an octal digit mode

2009-12-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think you misunderstand what's happening. It's not that os.chmod accepts octal digits, but Python: py> 04732 2522 So the support for octal numbers isn't something that chmod deserves credit for. -- nosy: +loewis ___

[issue7450] document that os.chmod accepts an octal digit mode

2009-12-07 Thread clutchski
New submission from clutchski : 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