[Python-ideas] New PEP proposal -- Pathlib Module Should Contain All File Operations

Nathaniel Smith njs at pobox.com
Wed Mar 14 15:02:37 EDT 2018


On Mar 12, 2018 1:57 PM, "George Fischhof" <george at fischhof.hu> wrote:

This PEP proposes pathlib module to be a centralized place for all
file-system related operations.


I'd find this useful for another reason that hasn't been mentioned yet:
having a single class collecting all the common/basic file operations makes
it much easier to provide a convenient async version of that interface. For
example: https://trio.readthedocs.io/en/latest/reference-io.html#trio.Path

Obviously it can never be complete, since there are always going to be
standalone functions that take paths and work on them internally (for
example in third party libraries), but the operations we're talking about
here are all pretty basic primitives.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180314/3290fd40/attachment.html>


More information about the Python-ideas mailing list