[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-11-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: A new `intermediate_mode=` kwarg can't _default_ to `mode=` as that would flip flop the API's default behavior again and no doubt disrupt someone elses 3.7-3.10 authored code depending on it. :( Regardless I do somewhat like `intermediate_mode=` more than

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-11-19 Thread Ad Timmering
Change by Ad Timmering : -- nosy: +awtimmering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-10-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-10-26 Thread Kartik Subbarao
Change by Kartik Subbarao : -- nosy: +kartiksubbarao ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-05-04 Thread JustAnotherArchivist
Change by JustAnotherArchivist : -- nosy: +JustAnotherArchivist ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-12-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +22756 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23901 ___ Python tracker

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Christian Heimes
Christian Heimes added the comment: +1 for restoring the feature +0 for Serhiy's proposal iff intermediate_mode defaults to the value of mode: def makedirs(name, mode=0o777, exist_ok=False, *, intermediate_mode=None): if intermediate_mode is None: intermediate_mode =

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternatively we can add an optional argument for the mode of intermediate directories. makedirs(name, mode=0o777, exist_ok=False, intermediate_mode=0o777) -- ___ Python tracker

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: For consistency, pathlib.Path.mkdir should also gain this option. -- ___ Python tracker ___

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2020-11-16 Thread Gregory P. Smith
New submission from Gregory P. Smith : os.makedirs used to pass its mode argument on down recursively so that every level of directory it created would have the specified permissions. That was removed in Python 3.7 as https://bugs.python.org/issue19930 as if it were a mis-feature. Maybe it