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 Tom Hale
Recipients Tom Hale, a.badger, serhiy.storchaka
Date 2019-06-03.10:36:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559558164.8.0.968470115752.issue36656@roundup.psfhosted.org>
In-reply-to
Content
Serhiy wrote

> Detected problem is better than non-detected problem.

I agree. I also assert that no problem (via a shutil wrapper) is better than a detected problem which may not be handled.

While it's up to the programmer to handle exceptions, it's only systems programmers who will realise that there is a sometimes-occurring exception which should be handled.

So most people won't handle it. They don't know that they need to.

The shutil os.link and os.symlink wrappers under discussion on python-ideas prevent non-system-programmers from needing to know about the race-condition case (and correctly handling it).

If something is difficult to get right, then let's put it in shutil and save everyone reinventing the wheel.

3 specific cases in which an atomic link replacement would be useful are listed here:

https://code.activestate.com/lists/python-ideas/56195/
History
Date User Action Args
2019-06-03 10:36:04Tom Halesetrecipients: + Tom Hale, a.badger, serhiy.storchaka
2019-06-03 10:36:04Tom Halesetmessageid: <1559558164.8.0.968470115752.issue36656@roundup.psfhosted.org>
2019-06-03 10:36:04Tom Halelinkissue36656 messages
2019-06-03 10:36:04Tom Halecreate