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.

Author mbarkhau
Recipients docs@python, mbarkhau
Date 2020-01-19.20:40:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579466446.68.0.178285979921.issue39390@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-19 20:40:46mbarkhausetrecipients: + mbarkhau, docs@python
2020-01-19 20:40:46mbarkhausetmessageid: <1579466446.68.0.178285979921.issue39390@roundup.psfhosted.org>
2020-01-19 20:40:46mbarkhaulinkissue39390 messages
2020-01-19 20:40:46mbarkhaucreate