[Python-ideas] PEP: Extended stat_result (First Draft)

Pieter Nagel pieter at nagel.co.za
Tue May 7 08:51:50 CEST 2013


On Tue, 2013-05-07 at 00:09 -0400, random832 at fastmail.us wrote:

> On the subject of platforms they _don't_ work with... What happens to
> code that hardcodes values like 0o644 on such platforms?

At issue here is the file type stat flags such as S_IS*.

The permission bits are not a problem. I'm confident that the permission
bits are specified by POSIX, and thus cross-platform (haven't
double-checked though).


-- 
Pieter Nagel





More information about the Python-ideas mailing list