[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ideas
Subject:    [Python-ideas] Re: Add copy to pathlib
From:       Todd <toddrjen () gmail ! com>
Date:       2022-10-19 0:16:12
Message-ID: CAFpSVpJm7UN+d1XdOfvwfHEC-0FLovHKrsPyw-WB-dwg57oahg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Oct 18, 2022, 19:39 Paul Bryan <pbryan@anode.ca> wrote:

> For my edification, how is copy in pathlib proposed to be implemented?
> Just call out to the OS to do the copy? Do the copy by reading and writing?
>

Just a thin wrapper around shutil.copy2 and shutil.copytree. Most
non-parsing pathlib operations are wrappers around corresponding operations
from other modules.

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr">On Tue, Oct 18, 2022, 19:39 Paul Bryan &lt;<a \
href="mailto:pbryan@anode.ca" target="_blank">pbryan@anode.ca</a>&gt; \
wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div><div>For my edification, how is copy in \
pathlib proposed to be implemented? Just call out to the OS to do the copy? Do the \
copy by reading and writing?</div></div></blockquote><div><br></div><div>Just a thin \
wrapper around shutil.copy2 and shutil.copytree. Most non-parsing pathlib operations \
are wrappers around corresponding operations from other modules.  </div></div> </div>



_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/MIRCZCV4NFFWVFWQTWTTL44SVME6QYWH/
 Code of Conduct: http://python.org/psf/codeofconduct/



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic