[issue5220] os.makedirs' mode argument has bad default value
Joshua Bronson
report at bugs.python.org
Wed Feb 11 22:27:05 CET 2009
Joshua Bronson <jabronson at gmail.com> added the comment:
Ah, I was misunderstanding the behavior of mkdir, thank you for the
explanation.
My misunderstanding stemmed from recently coming across two widely-used
packages which both pass mode=0750 to os.makedirs. I have no idea why
they would be doing this (as it effectively throws away part of the
umask), unless they too are misunderstanding the mode parameter. My
suspicion is that the mode parameter is widely misunderstood to mean the
desired permissions of the created directory. I have filed tickets in
the packages in which I came across this to make sure they're doing what
they intend.
Could the __doc__ for os.mkdir and os.makedirs be expanded to make this
clearer?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5220>
_______________________________________
More information about the Python-bugs-list
mailing list