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 serhiy.storchaka
Recipients Antony.Lee, georg.brandl, ncoghlan, pitrou, serhiy.storchaka, yselivanov
Date 2014-10-04.13:45:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412430351.84.0.295510686813.issue20267@psf.upfronthosting.co.za>
In-reply-to
Content
> Should I use os.path.realpath?

I don't see other way.

But there is other issue. Following code works now, but will fail with the patch:

import os, tempfile
os.mkdir('parent')
os.chdir('parent')
t = tempfile.TemporaryDirectory(dir=".")
os.rename('../parent', '../parent2')
t.cleanup()
History
Date User Action Args
2014-10-04 13:45:51serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, ncoghlan, pitrou, yselivanov, Antony.Lee
2014-10-04 13:45:51serhiy.storchakasetmessageid: <1412430351.84.0.295510686813.issue20267@psf.upfronthosting.co.za>
2014-10-04 13:45:51serhiy.storchakalinkissue20267 messages
2014-10-04 13:45:51serhiy.storchakacreate