Skip to content

Default arguments for access 'mode' parameters in pathlib and os should display as octal literals #91403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AidanWoolley mannequin opened this issue Apr 7, 2022 · 3 comments
Labels
3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir topic-pathlib type-feature A feature request or enhancement

Comments

Image for: Comments
Copy link
Mannequin

AidanWoolley mannequin commented Apr 7, 2022

BPO 47247
Nosy @ericvsmith

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2022-04-07.09:52:37.163>
labels = ['3.11', 'type-feature', '3.10', 'docs']
title = "Default arguments for access 'mode' parameters in pathlib and os should display as octal literals"
updated_at = <Date 2022-04-07.14:25:35.295>
user = 'https://bugs.python.org/AidanWoolley'

bugs.python.org fields:

activity = <Date 2022-04-07.14:25:35.295>
actor = 'eric.smith'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation']
creation = <Date 2022-04-07.09:52:37.163>
creator = 'AidanWoolley'
dependencies = []
files = []
hgrepos = []
issue_num = 47247
keywords = []
message_count = 2.0
messages = ['416921', '416929']
nosy_count = 3.0
nosy_names = ['eric.smith', 'docs@python', 'AidanWoolley']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue47247'
versions = ['Python 3.10', 'Python 3.11']

Copy link
Mannequin Author

AidanWoolley mannequin commented Apr 7, 2022

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

AidanWoolley mannequin added 3.10 only security fixes 3.11 only security fixes labels Apr 7, 2022
AidanWoolley mannequin assigned docspython Apr 7, 2022
AidanWoolley mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Apr 7, 2022
Copy link
Member

I think this is a duplicate of bpo-46782.

ezio-melotti transferred this issue from another repository Apr 10, 2022
Copy link
Contributor

slateny commented Sep 9, 2022

Agreed, looks like a duplicate so will close in favour of that one.

slateny closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir topic-pathlib type-feature A feature request or enhancement
3 participants