[New-bugs-announce] [issue39390] shutil.copytree - ignore callback behaviour change
Manuel Barkhau
report at bugs.python.org
Sun Jan 19 15:40:46 EST 2020
New submission from Manuel Barkhau <mbarkhau at gmail.com>:
In Python 3.8, the types of the parameters to the ignore callable appear to have changed.
Previously the `src` parameter was a string and the `names` parameter was a list of strings. Now the `src` parameter appears to be either a `pathlib.Path` or an `os.DirEntry`, while the `names` parameter is a set of strings.
I would suggest adding the following to the documentation https://github.com/python/cpython/blob/master/Doc/library/shutil.rst
.. versionchanged:: 3.8
The types of arguments to *ignore* have changed. The first argument
(the directory being visited) is a func:`os.DirEntry` or a
func:`pathlib.Path`; Previously it was a string. The second argument is
a set of strings; previously it was a list of strings.
----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 360271
nosy: docs at python, mbarkhau
priority: normal
severity: normal
status: open
title: shutil.copytree - ignore callback behaviour change
type: behavior
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39390>
_______________________________________
More information about the New-bugs-announce
mailing list