Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6443a8c

Browse filesBrowse files
bpo-41646: Mention path-like objects support in the docs for shutil.copy() (GH-22208)
(cherry picked from commit 8f2b991) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 058affc commit 6443a8c
Copy full SHA for 6443a8c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Doc/library/shutil.rst

Copy file name to clipboardExpand all lines: Doc/library/shutil.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ Directory and files operations
158158
.. function:: copy(src, dst, *, follow_symlinks=True)
159159

160160
Copies the file *src* to the file or directory *dst*. *src* and *dst*
161-
should be strings. If *dst* specifies a directory, the file will be
162-
copied into *dst* using the base filename from *src*. Returns the
163-
path to the newly created file.
161+
should be :term:`path-like objects <path-like object>` or strings. If
162+
*dst* specifies a directory, the file will be copied into *dst* using the
163+
base filename from *src*. Returns the path to the newly created file.
164164

165165
If *follow_symlinks* is false, and *src* is a symbolic link,
166166
*dst* will be created as a symbolic link. If *follow_symlinks*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.