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

Paul Moore p.f.moore at gmail.com
Tue Jun 10 14:44:43 CEST 2014


On 10 June 2014 13:19, Ben Hoyt <benhoyt at gmail.com> wrote:
> Because these are fixed-forever constants, I suspect in library code
> and the like people would just KISS and use an integer literal and a
> comment, avoiding the import/constant thing:

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.

Paul


More information about the Python-Dev mailing list