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.

Author jab
Recipients jab, loewis
Date 2009-02-11.21:26:25
SpamBayes Score 2.2124146e-05
Marked as misclassified No
Message-id <1234387624.82.0.602915301048.issue5220@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-02-11 21:27:08jabsetrecipients: + jab, loewis
2009-02-11 21:27:05jabsetmessageid: <1234387624.82.0.602915301048.issue5220@psf.upfronthosting.co.za>
2009-02-11 21:27:01jablinkissue5220 messages
2009-02-11 21:26:39jabcreate