[Python-ideas] New PEP proposal -- Pathlib Module Should Contain All File Operations
Wes Turner
wes.turner at gmail.com
Wed Mar 14 14:22:54 EDT 2018
path.py conveniently defines very many (most?) file operations as methods:
https://github.com/jaraco/path.py/blob/master/path.py
https://pathpy.readthedocs.io/en/latest/api.html
The division operator is mapped to os.path.join:
Path('a') / '/root' == Path('/root')
On Monday, March 12, 2018, George Fischhof <george at fischhof.hu> wrote:
>
>
> 2018-03-12 22:16 GMT+01:00 Paul Moore <p.f.moore at gmail.com>:
>
>> On 12 March 2018 at 20:57, George Fischhof <george at fischhof.hu> wrote:
>> > Good day all,
>> >
>> > as it seemed to be a good idea, I wrote a PEP proposal for pathlib to
>> > contain file operations.
>> >
>> > Here is the draft. What do you think about this?
>>
>> I don't know for certain what I think I feel about the idea - in
>> general, it seems plausible. But I think you'll need to get down to
>> specifics in the PEP, exactly what functions do you suggest get added
>> to pathlib?
>>
>> Paul
>>
>
>
> Basically file and directory operations: copy, rename, move, delete.
> With all variants.
> I will collect them, and put intot PEP
>
> George
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180314/0df7a2bd/attachment.html>
More information about the Python-ideas
mailing list