[issue11016] Add S_ISDOOR to the stat module

Martin v. Löwis report at bugs.python.org
Wed Jan 26 21:56:05 CET 2011


Martin v. Löwis <martin at v.loewis.de> added the comment:

Am 26.01.2011 14:14, schrieb Jesús Cea Avión:
> 
> Jesús Cea Avión <jcea at jcea.es> added the comment:
> 
> Antoine, I am not talking about python, I am talking about the UNIX
> standarization process. In particular, how a new flag (for
> filesystems) in an OS can be "skipped" and not being reused for some
> other purpuse in other OS.

There is no standards body defining the S_IFMT numerical values.
POSIX defines the symbolic constants:

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/stat.h.html

The Python stat module is flawed in assuming it knows the numeric values
(although by tradition, it is correct on all systems we care about).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11016>
_______________________________________


More information about the Python-bugs-list mailing list