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

George Fischhof george at fischhof.hu
Sun Mar 18 17:16:31 EDT 2018


Hi Jason,

the status of os and shutil became this because of C functions in
implementation (I got something similar answer before)
...

What do you think, what would be a good way to solve this
- add stuff from os to shutil
- add stuff from os and shutil to pathlib
- create a new module on top of os, shutil and pathlib (we could name it
for example filelib

George

2018-03-18 19:43 GMT+01:00 Jason Maldonis <jjmaldonis at gmail.com>:

> Surely shutil is a *high* level modules.
>> os is a low level module that shutil builds on.
>> Adding the missing pieces to shutil would make it the place to go to do
>> file operations.
>> Pity its not called filelib.
>>
>
> Gotcha, thank you! shutil being a high level library complicates things...
> So we have two "high-level" libraries (pathlib and shutil) and both of them
> provide different pieces of useful functionality. Maybe I am starting to
> see why this is complicated. Thanks for reading my above reply and taking
> the time to respond.
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180318/ce813c52/attachment.html>


More information about the Python-ideas mailing list