[issue26031] Add stat caching option to pathlib

Guido van Rossum report at bugs.python.org
Wed Jan 6 18:06:25 EST 2016


Guido van Rossum added the comment:

That's fair, though I don't know what kind of caching design was considered
(until Ram's suggestion on python-ideas I had thought the cache would
simply use a slot on the Path instance to hold the stat() result).

If we want pathlib to become pervasive we may have to accept that its
implementation may become more complex in order to support more use cases.
(I'm so far holding off a walk() method, but who knows for how long...)

----------

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


More information about the Python-bugs-list mailing list