Message 319208 - Python tracker

Message319208

Author martin.panter
Recipients bsdphk, christian.heimes, martin.panter, r.david.murray, serhiy.storchaka, tuxtimo, vstinner, xiang.zhang
Date 2018-06-10.11:30:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528630236.01.0.592728768989.issue33687@psf.upfronthosting.co.za>
In-reply-to
Content
What is your use case, Poul-Henning?

It looks like the module has never set the file mode, at least since it was added to Python in 1994. I suggest just remove the dead code and fix the documentation. At least you shouldn’t make this change in bug fix releases. It is just as likely to break people’s code as fix it.

If you do want to change the behaviour, I suggest using “os.open” to set the mode when the file is created. Otherwise you risk errors and messing up the filesystem when using special files e.g. uu.decode(..., "/dev/null").
History
Date User Action Args
2018-06-10 11:30:36martin.pantersetrecipients: + martin.panter, vstinner, christian.heimes, r.david.murray, serhiy.storchaka, bsdphk, xiang.zhang, tuxtimo
2018-06-10 11:30:36martin.pantersetmessageid: <1528630236.01.0.592728768989.issue33687@psf.upfronthosting.co.za>
2018-06-10 11:30:35martin.panterlinkissue33687 messages
2018-06-10 11:30:35martin.pantercreate