This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stephan
Recipients stephan
Date 2016-10-04.13:42:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475588552.47.0.916118565333.issue28356@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I am just migrating my code from python 2.7.12 to 3.5.2
on Windows and stumbled on the following difference:

In python 2.7.12:
  os.rename(filepath1, filepath2) 
  works even if 
  filepath1 and filepath2 are on different drives
  (or one on a local drive, the other on a network share).

In python 3.5.2 I get for the same operation:
 "OSError: [WinError 17] The system cannot move the file to a different disk drive"

My question:
 - is this a bug?
 - if not, where is this difference mentioned in the docs?
   I did find nothing, but I think it should be mentioned,
   otherwise I assume it's a bug.
History
Date User Action Args
2016-10-04 13:42:32stephansetrecipients: + stephan
2016-10-04 13:42:32stephansetmessageid: <1475588552.47.0.916118565333.issue28356@psf.upfronthosting.co.za>
2016-10-04 13:42:32stephanlinkissue28356 messages
2016-10-04 13:42:32stephancreate