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 ishimoto
Recipients BreamoreBoy, anthonybaxter, eric.araujo, gennad, hynek, ishimoto, nnorwitz, pitrou, tarek, zooko
Date 2012-07-16.16:03:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342454602.04.0.694031244146.issue1492704@psf.upfronthosting.co.za>
In-reply-to
Content
Patch updated.

- SameFileError is now derived from EnvironmentError.
- Fixed documentation.
- Fixed test method name.

I investigated this patch:

- shutil.copyfile() and shutil.copy() raises SameFileError if source and destination are same file.

- shutil.move() never raises SameFileError. shutil.move() may raise exception if source and dest are same file, but it depends on underlying implementation of platform. Linux and Windows don't raise exception in this case.

- I am opposed to change shutil.move() to raise SameFileError, because such incompatible change can break existing applilcations.
History
Date User Action Args
2012-07-16 16:03:22ishimotosetrecipients: + ishimoto, nnorwitz, anthonybaxter, zooko, pitrou, tarek, eric.araujo, BreamoreBoy, gennad, hynek
2012-07-16 16:03:22ishimotosetmessageid: <1342454602.04.0.694031244146.issue1492704@psf.upfronthosting.co.za>
2012-07-16 16:03:21ishimotolinkissue1492704 messages
2012-07-16 16:03:21ishimotocreate