This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Default arguments for access 'mode' parameters in pathlib and os should display as octal literals
Type: enhancement Stage:
Components: Documentation Versions: Python 3.11, Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: AidanWoolley, docs@python, eric.smith
Priority: normal Keywords:

Created on 2022-04-07 09:52 by AidanWoolley, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg416921 - (view) Author: Aidan Woolley (AidanWoolley) Date: 2022-04-07 09:52
E.g. 0o777 rather than 511

This is a regression since the docs for 3.9

Affected functions/methods:
pathlib.Path.mkdir
pathlib.Path.touch
os.open
os.mkdir
os.makedirs
os.mkfifo
os.mknod
msg416929 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2022-04-07 14:25
I think this is a duplicate of #46782.
History
Date User Action Args
2022-04-11 14:59:58adminsetgithub: 91403
2022-04-07 14:25:35eric.smithsetnosy: + eric.smith
messages: + msg416929
2022-04-07 09:52:37AidanWoolleycreate