[issue1492704] distinct error type from shutil.move()

Atsuo Ishimoto report at bugs.python.org
Mon Jul 16 15:56:13 CEST 2012


Atsuo Ishimoto <ishimoto at gembook.org> added the comment:

So, the title of this issue is misleading.

The patch originally proposed by Zooko does not raise SameFileError in
shutil.move(). If source and destination is same file, shutil.move() may
raise exception, but the exception is NOT SameFileError but OSError or something.

shutil.copy() raises SameFileError if source and destination is same file.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1492704>
_______________________________________


More information about the Python-bugs-list mailing list