Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Since shutil.copy() accepts path-like object, I do not think there is a need to 
add the copy method to Path.

As for additional limitation, it looks arbitrary and application specific. You 
can easy implement a simple helper function as you just demonstrated. And you 
can easily modify it if your needs change (for example if you decide to not 
copy links). Not every three lines of code should be added as a function to the 
stdlib.

----------
nosy: +serhiy.storchaka
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38627>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to