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

Zachary Ware zachary.ware+pydev at gmail.com
Tue Jun 10 21:08:26 CEST 2014


On Tue, Jun 10, 2014 at 2:04 PM, Ben Hoyt <benhoyt at gmail.com> wrote:

To solve this problem, what do people think about adding an "stwinattrs" attribute to the object returned by os.stat() on Windows?

+1 to the idea, whatever the exact implementation. Cool. I think we should add a stwinattrs integer attribute (on Windows) and then also add the FILEATTRIBUTES* constants to stat.py per Paul Moore.

Add to _stat.c rather than stat.py.

What would be the next steps to get this to happen? Open an issue on bugs.python.org and submit a patch with tests?

Yep!

-- Zach



More information about the Python-Dev mailing list