[issue1492704] distinct error type from shutil.move()
Gennadiy Zlobin
report at bugs.python.org
Thu Sep 8 11:59:53 CEST 2011
Gennadiy Zlobin <gennad.zlobin at gmail.com> added the comment:
My fault. I tested it only partially, relying on the documentation that says
"""
On Windows, if dst already exists, OSError will be raised even if it is a file
"""
Actually it does not (at least at my Windows 7):
(Pdb) os.path.isfile(src)
True
(Pdb) p os.rename(src, src)
None
Am I doing something wrong?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1492704>
_______________________________________
More information about the Python-bugs-list
mailing list