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 tim.golden
Recipients asvetlov, brian.curtin, flox, jafo, jaraco, loewis, ncoghlan, pitrou, r.david.murray, techtonik, tim.golden
Date 2011-03-27.17:16:45
SpamBayes Score 3.0093938e-07
Marked as misclassified No
Message-id <4D8F70FA.20504@timgolden.me.uk>
In-reply-to <1301236426.3568.9.camel@localhost.localdomain>
Content
Well http://bugs.python.org/issue7443#msg102833 outlines the problems I encountered while trying to do essentially that. Nothing insurmountable, but definitely bigger than simply adding one line of code.

Looks to me like there are two avenues of approach (and, given the chatter on this issue, several people willing to address them):

* Patch Py_DeleteFileW in posixmodule.c so that it renames before deleting: should solve the problem overall but obviously has a possible wider impact, in general and on performance in particular. This rename might be a simple rename-to-guid or something more sophisticated such as the rename-to-recycler which cygwin uses.

* Patch support.unlink in the test package to do the rename dance on the basis that it'll fix at least some of the problems with less impact overall.

Opinions? I'm willing to do either.
History
Date User Action Args
2011-03-27 17:16:46tim.goldensetrecipients: + tim.golden, loewis, jafo, jaraco, ncoghlan, pitrou, techtonik, r.david.murray, brian.curtin, asvetlov, flox
2011-03-27 17:16:45tim.goldenlinkissue7443 messages
2011-03-27 17:16:45tim.goldencreate