Author bethard
Recipients SilentGhost, Tarsis.Azevedo, akira, bethard, doughellmann, eric.araujo, georg.brandl
Date 2011-01-23.11:55:58
SpamBayes Score 5.53669e-05
Marked as misclassified No
Message-id <1295783762.42.0.43861212966.issue9509@psf.upfronthosting.co.za>
In-reply-to
Content
The docs for os.chmod claim:

Availability: Unix, Windows.
Although Windows supports chmod(), you can only set the file's read-only flag with it (via the stat.S_IWRITE and stat.S_IREAD constants or a corresponding integer value). All other bits are ignored.

So at least according to the current docs, we should be okay calling `os.chmod(file_path, stat.S_IREAD)` on Unix and Windows (and of course OS X too). Is that enough or did you have other platforms in mind?
History
Date User Action Args
2011-01-23 11:56:02bethardsetrecipients: + bethard, georg.brandl, eric.araujo, doughellmann, SilentGhost, akira, Tarsis.Azevedo
2011-01-23 11:56:02bethardsetmessageid: <1295783762.42.0.43861212966.issue9509@psf.upfronthosting.co.za>
2011-01-23 11:55:58bethardlinkissue9509 messages
2011-01-23 11:55:58bethardcreate