If it makes you feel any better, I spent an hour this morning building a 2-function API for Linux and Windows, both tested, not using ctypes, and not even using any part of asyncio (the Windows bits are in msvcrt and _winapi). It works in Python 3.3+. You can see it here: http://pastebin.com/0LpyQtU5
- Josiah On Fri, Mar 28, 2014 at 1:09 AM, Paul Moore <p.f.mo...@gmail.com> wrote: > On 28 March 2014 05:09, Josiah Carlson <josiah.carl...@gmail.com> wrote: > > So yeah. Someone want to make a decision? Tell me to write the docs, I > will. > > Tell me to go take a long walk off a short pier, I'll thank you for your > > time and leave you alone. > > I had a need for this a few years ago. It's messy to do on Windows > (ctypes callouts to PeekNamedPipe to check if you can read from the > process without blocking). So I would like to see a recipe for this, > (even if it's likely to be another few years before I ever need it > again :-)). > > Paul >
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com