[issue39390] shutil.copytree - 3.8 changed argument types of the ignore callback
Giampaolo Rodola'
report at bugs.python.org
Tue Jan 21 17:31:20 EST 2020
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
Yes, thanks. Whoever got bit by this is either getting an exception or not the intended behavior (due to failed string comparison). I doubt anybody is relying on the new type checking since it's not documented. If they are, they are probably just doing:
def callback(name, names):
if not isinstance(name, str): # bugfix 3.8
name = name.name
...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39390>
_______________________________________
More information about the Python-bugs-list
mailing list