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 piotr.dobrogost
Recipients dabrahams, loewis, ncoghlan, piotr.dobrogost, pitrou, sbt
Date 2013-03-14.10:31:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363257061.96.0.615004278756.issue15244@psf.upfronthosting.co.za>
In-reply-to
Content
> I don't understand whether you are proposing to include the patch into Python as-is;

I think Richard is well aware of the constraints you specify and current patch was meant as a proof of concept; to show that all tests pass with such a change. Of course that's only my belief and we shall see what Richard has to say.

> That said, having maximum sharing when opnening files sounds fine to me.

Good to hear. However I started to wonder if we are ready for all consequences of this. For example taking into account what Richard noted in http://bugs.python.org/issue14243, specifically:

> Unfortunately using O_TEMPORARY is the only way allowed by msvcrt to
> get FILE_SHARE_DELETE, even though it also has the orthogonal effect
> of unlinking the file when all handles are closed.

forces programs which would like to open a file being opened at the same time by Python code (by means of built-in open() or os.open() with default arguments) to either use O_TEMPORARY when using msvcrt or to go low level and use CreateFile() Win32 API function with FILE_SHARE_DELETE flag. Are we ok with it?
History
Date User Action Args
2013-03-14 10:31:02piotr.dobrogostsetrecipients: + piotr.dobrogost, loewis, ncoghlan, pitrou, dabrahams, sbt
2013-03-14 10:31:01piotr.dobrogostsetmessageid: <1363257061.96.0.615004278756.issue15244@psf.upfronthosting.co.za>
2013-03-14 10:31:01piotr.dobrogostlinkissue15244 messages
2013-03-14 10:31:01piotr.dobrogostcreate