Éric Araujo added the comment:
Octal 777 is really the same as decimal 511.
If you are calling mkdir and looking at the permissions on the created
directory, you may think the mode is wrong because of umask (default permission
bitmask that’s applied to the mode). But the numbers are really eq
sjndlnv brjkbn added the comment:
I found out that this issue can be fixed by set ``autodoc_preserve_defaults``
to True [(From
sphinx-doc)](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_preserve_defaults)
On the other hand. I test ``Path.mkdir(mode=511)``
Terry J. Reedy added the comment:
The conversions from 0o777 to 511 in 3.10 and 3.11 but not in 3.9 are these:
https://docs.python.org/3/library/pathlib.html#pathlib.Path.mkdir
Path.mkdir(mode=511, parents=False, exist_ok=False)
https://docs.python.org/3/library/os.html#os.mkdir
os.mkdir(
New submission from sjndlnv brjkbn :
Document for 3.10 version seems auto convert 0o777 to 511. And it's correct for
3.9
(May be due to new version of Sphinx? Seems source code for docs are correct.)
[img]https://i.imgur.com/ByWSJ6A.png[/img]
[img]https://i.imgur.com/rK0romC.png[/img]
[img]ht