Author sbt
Recipients amaury.forgeotdarc, ezio.melotti, pitrou, santoso.wijaya, sbt, socketpair, vstinner
Date 2013-01-14.20:17:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358194631.15.0.863876207099.issue12939@psf.upfronthosting.co.za>
In-reply-to
Content
> What does this proposal bring exactly?

Unless we are willing to completely replace fds with handles on Windows, perhaps not too much.  (At one point I had assumed that that was the plan for py3k.)

Although not advertised, openhandle() does have a share_flags parameter to control the share mode of the file.  This makes it possible to delete files for which there are open handles.  Mercurial needs a C extension to support this.  regrtest could certainly benefit from such a feature.

But one thing that I would at least like to do is create a FileIO replacement for overlapped pipe/socket handles.  Then multiprocessing.Connection could be a simple wrapper round a file object, and most of the platform specific code in multiprocessing.connection can go away.

The current patch does not support overlapped IO, but that could be added easily enough.  (Overlapped IO for normal files might be more complicated.)
History
Date User Action Args
2013-01-14 20:17:11sbtsetrecipients: + sbt, amaury.forgeotdarc, pitrou, vstinner, ezio.melotti, santoso.wijaya, socketpair
2013-01-14 20:17:11sbtsetmessageid: <1358194631.15.0.863876207099.issue12939@psf.upfronthosting.co.za>
2013-01-14 20:17:11sbtlinkissue12939 messages
2013-01-14 20:17:10sbtcreate