[issue28356] Windows: os.rename different in python 2.7.12 and python 3.5.2

Eryk Sun report at bugs.python.org
Thu Feb 25 07:46:58 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

The documentation of os.rename() should mention that on Windows the "operation will fail if src and dst are on different filesystems". For POSIX, instead of "will" it says "may", but the failure is a certainty in Windows since MOVEFILE_COPY_ALLOWED isn't used.

----------
assignee:  -> docs at python
components: +Documentation
nosy: +docs at python
stage:  -> needs patch
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28356>
_______________________________________


More information about the Python-bugs-list mailing list