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

shutil _isindir

2011-10-22 Thread David Hoese
case...or just submit the bug yourself. -Dave P.S. Sorry for the original poor subject line, was a place holder that I forgot to change. On 10/22/2011 5:00 AM, python-list-requ...@python.org wrote: Subject: Re: shutil _isindir From: Steven D'Aprano Date: 10/22/2011 4:03 AM To: python-list@pyt

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

shutil _isindir

2011-10-21 Thread David Hoese
Hi, 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.path.abspath to conver