[Python-Dev] Returning Windows file attribute information via os.stat()

Ben Hoyt benhoyt at gmail.com
Tue Jun 10 14:58:19 CEST 2014


> The stat module exposes a load of constants - why not add the
> (currently known) ones there? Finding the values of Windows constants
> if you don't have access to the C headers can be a pain, so having
> them defined *somewhere* as named values is useful.

So stat.FILE_ATTRIBUTES_HIDDEN and the like? Alternatively they could
go in ctypes.wintypes, but I think stat makes more sense in this case.

-Ben


More information about the Python-Dev mailing list