This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: copytree example in shutil
Type: Stage: resolved
Components: Documentation Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Alberto Torres Barrán, JelleZijlstra, ZackerySpytz, docs@python, miss-islington, ys19991
Priority: normal Keywords: patch

Created on 2020-06-15 09:18 by Alberto Torres Barrán, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24778 merged ZackerySpytz, 2021-03-07 00:35
PR 32326 merged miss-islington, 2022-04-05 02:57
PR 32327 merged miss-islington, 2022-04-05 02:57
Messages (6)
msg371535 - (view) Author: Alberto Torres Barrán (Alberto Torres Barrán) Date: 2020-06-15 09:18
The copytree example in https://docs.python.org/3/library/shutil.html#copytree-example does not match the source code, even removing docstrings. In particular is missing parameters and the exceptions are in the wrong order (Error will never be reachable since it is n instance of OSError).
msg373449 - (view) Author: Wansoo Kim (ys19991) * Date: 2020-07-10 07:49
Can I solve this issue?
msg416729 - (view) Author: Jelle Zijlstra (JelleZijlstra) * (Python committer) Date: 2022-04-05 02:57
New changeset e06f920c5bc6e9fad29082ba0d84043722806e17 by Zackery Spytz in branch 'main':
bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778)
https://github.com/python/cpython/commit/e06f920c5bc6e9fad29082ba0d84043722806e17
msg416732 - (view) Author: Jelle Zijlstra (JelleZijlstra) * (Python committer) Date: 2022-04-05 03:00
Thanks for the report and patch!
msg416736 - (view) Author: miss-islington (miss-islington) Date: 2022-04-05 03:16
New changeset 857cf55cbdd65b7a9534dc35d89a19dfe8cbdba5 by Miss Islington (bot) in branch '3.10':
bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778)
https://github.com/python/cpython/commit/857cf55cbdd65b7a9534dc35d89a19dfe8cbdba5
msg416737 - (view) Author: miss-islington (miss-islington) Date: 2022-04-05 03:22
New changeset bc9ec24290d0fa823fa2ac19ac9767b2b8498faa by Miss Islington (bot) in branch '3.9':
bpo-40982: shutil docs: Remove outdated copytree() example (GH-24778)
https://github.com/python/cpython/commit/bc9ec24290d0fa823fa2ac19ac9767b2b8498faa
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85154
2022-04-05 03:22:12miss-islingtonsetmessages: + msg416737
2022-04-05 03:16:24miss-islingtonsetmessages: + msg416736
2022-04-05 03:00:07JelleZijlstrasetstatus: open -> closed
resolution: fixed
messages: + msg416732

stage: patch review -> resolved
2022-04-05 02:57:29miss-islingtonsetpull_requests: + pull_request30386
2022-04-05 02:57:26JelleZijlstrasetnosy: + JelleZijlstra
messages: + msg416729
2022-04-05 02:57:25miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request30385
2021-03-07 00:35:59ZackerySpytzsetkeywords: + patch
nosy: + ZackerySpytz

pull_requests: + pull_request23543
stage: patch review
2020-07-10 07:49:13ys19991setnosy: + ys19991
messages: + msg373449
2020-06-15 09:18:48Alberto Torres Barráncreate