os.rename on Windows

Random832 random832 at fastmail.com
Wed Mar 23 08:28:21 EDT 2016


On Wed, Mar 23, 2016, at 08:17, Steven D'Aprano wrote:
> Any Windows users here?
>
>     print(e.winerror)  # Windows only
>     print(e.errno)
>     print(repr(e))

183
17
FileExistsError(17, 'Cannot create a file when that file already
exists')

Python 3.5.1.



More information about the Python-list mailing list