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 vstinner
Recipients abo, ajaksu2, brian.curtin, christian.heimes, giampaolo.rodola, neologix, pitrou, vstinner
Date 2013-10-24.11:27:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382614071.47.0.00922295105543.issue949667@psf.upfronthosting.co.za>
In-reply-to
Content
There is a real need of non-blocking operation, but I now think that adding a set_blocking() method is not the right solution. First, as said by Charles-Francois: O_NONBLOCK flag has no effect on regular files. Second, there is no portable way to declare a file as "non blocking": as said by Tim, it is complelty different on Windows (I/O Completion ports).

The asyncio module has been merged into Python 3.4: you can now use it to access a file asynchroniously. I don't think that the asyncio is complete for your use case, but if something should done: it is in this module, only in this module, not the API of the io.FileIO class.

asyncio can be used to watch pipes of a subprocess asynchroniously.
History
Date User Action Args
2013-10-24 11:27:51vstinnersetrecipients: + vstinner, abo, pitrou, giampaolo.rodola, christian.heimes, ajaksu2, brian.curtin, neologix
2013-10-24 11:27:51vstinnersetmessageid: <1382614071.47.0.00922295105543.issue949667@psf.upfronthosting.co.za>
2013-10-24 11:27:51vstinnerlinkissue949667 messages
2013-10-24 11:27:51vstinnercreate