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

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 18 18:53:20 EDT 2018


Jason Maldonis wrote:
> In python, `os` and `shutil` are currently the low-level modules, and it 
> stands to reason that we might consider combining these somehow 
> (although I'm assuming that there was a good reason not to in the first 
> place

The functions in os are thin wrappers around system calls,
whereas those in shutil require substantial amounts of
code (either python or C) to implement and are used
relatively rarely.

-- 
Greg


More information about the Python-ideas mailing list