shutil _isindir

Peter Otten __peter__ at web.de
Mon Oct 24 03:28:11 EDT 2011


David Hoese wrote:

> I was about to submit a bug report, but while testing I have figured out
> that my specific problem has been solved in Python 2.7 (server that I
> was using had 2.6 on it).  You can see the differences here:
> 
> 2.6: http://hg.python.org/cpython/file/b9a95ce2692c/Lib/shutil.py
> 2.7: http://hg.python.org/cpython/file/d30482d51c25/Lib/shutil.py
> 
> You'll notice that in move(), there is now a check for the same file,
> which if they're not the same file you don't get unexpected deleted
> files.  If you still think I should submit a bug report let me know and
> provide me with the test case...or just submit the bug yourself.

Aren't there still problems that can be avoided with the change you propose? 
I think the bug report is worthwhile.




More information about the Python-list mailing list