Re: shutil _isindir

2011-10-24 Thread Peter Otten
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.p

Re: shutil _isindir

2011-10-22 Thread Steven D'Aprano
On Fri, 21 Oct 2011 22:13:06 -0500, David Hoese wrote: > So I guess what I'm asking is what are the reasons that _destinsrc uses > abspath instead of realpath? And is there a better place to ask this? Probably because abspath goes back to Python 1.5, while realpath is comparatively recent only

Re: shutil _isindir

2011-10-22 Thread Peter Otten
David Hoese wrote: > I wasn't really sure where to post this since the python-dev list seems > way too official. I'm wondering/questioning the behavior of > shutil.move. It currently does a check for if the dst is inside the src > directory with a _destinsrc function. This function uses > os.pa