[issue2874] Remove use of the stat module in the stdlib

Brett Cannon report at bugs.python.org
Mon Jul 14 01:32:20 CEST 2008


Brett Cannon <brett at python.org> added the comment:

On Sun, Jul 13, 2008 at 4:04 PM, Brett Cannon <report at bugs.python.org> wrote:
>
> Brett Cannon <brett at python.org> added the comment:
>
> Another option is to eliminate the use of PyStructSequence and handle
> the creation of a named tuple and a class with the methods in os.py.
> Then stat() can just return a tuple and the Python code can create the
> instances from that.
>

Although I noticed that what fields are available are affected by
compile-time info, so that might not be the best solution.

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


More information about the Python-bugs-list mailing list