Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

replace under the hood uses os.replace. The docs for os.replace indicate error 
for certain scenarios where target is a directory : 
https://docs.python.org/3/library/os.html#os.replace . See also some difference 
between os.rename and os.replace : https://bugs.python.org/issue27886

----------
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python, pitrou, serhiy.storchaka, xtreak

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40278>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to