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 eryksun
Recipients dabrahams, eryksun, loewis, ncoghlan, paul.moore, piotr.dobrogost, pitrou, r.david.murray, sbt, steve.dower, tim.golden, zach.ware
Date 2021-03-12.23:13:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615590830.57.0.818754035299.issue15244@roundup.psfhosted.org>
In-reply-to
Content
Deleting a file in Windows 10 has been updated to try a POSIX-style delete. For a POSIX delete, the filesystem unlinks the file even it's open, whereas a classic delete only unlinks a 'deleted' file when it's closed. The filesystem has to support it. NTFS does, which is the most important because the system drive is NTFS. This makes supporting FILE_SHARE_DELETE a more attractive option. 

That said, there are sill significant limits. Memory-mapped files can't be deleted (renamed, yes, but not removed). Also, most programs don't share delete access on their opens, which means they can't open a file that's currently open with delete access (e.g. NamedTemporaryFile), and their open files can't be deleted.
History
Date User Action Args
2021-03-12 23:13:50eryksunsetrecipients: + eryksun, loewis, paul.moore, ncoghlan, pitrou, tim.golden, r.david.murray, dabrahams, sbt, piotr.dobrogost, zach.ware, steve.dower
2021-03-12 23:13:50eryksunsetmessageid: <1615590830.57.0.818754035299.issue15244@roundup.psfhosted.org>
2021-03-12 23:13:50eryksunlinkissue15244 messages
2021-03-12 23:13:50eryksuncreate