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 gennad
Recipients BreamoreBoy, anthonybaxter, eric.araujo, gennad, nnorwitz, pitrou, tarek, zooko
Date 2011-09-08.09:59:52
SpamBayes Score 4.748932e-06
Marked as misclassified No
Message-id <1315475993.08.0.221715459023.issue1492704@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-09-08 09:59:53gennadsetrecipients: + gennad, nnorwitz, anthonybaxter, zooko, pitrou, tarek, eric.araujo, BreamoreBoy
2011-09-08 09:59:53gennadsetmessageid: <1315475993.08.0.221715459023.issue1492704@psf.upfronthosting.co.za>
2011-09-08 09:59:52gennadlinkissue1492704 messages
2011-09-08 09:59:52gennadcreate