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

Joonas Liik liik.joonas at gmail.com
Fri Mar 16 07:34:30 EDT 2018


If there it is desireable to have pathlib used to represent paths that do
not map directly to the filesystem..

then it might be an acceptable compromise to have yet another... package
that just imports os, pathlib, shutil etc and re-exports all relevant
functions.
i mean we are talking about convenience here anyway not new functionality
and this would enable 1-import convenience that gives you
all-you-would-ever-want
but at the cost of maybe a bit more startup time if you only needed 1 of
the 3 modules that do actual work. and avoid polluting pathlib with things
that are... too useful in the real world :P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180316/176fe7ef/attachment-0001.html>


More information about the Python-ideas mailing list