This is code that was born while working on https://stackoverflow.com/questions/34504970/non-blocking-read-on-os-pipe-on-windows
It consists of ospipen.py
module with a sigle function:
def pipe_no_wait(pipefd):
""" pipefd is a integer as returned by os.pipe """
ossub.py
that tests the concept on subprocess.PIPE
, and Go program for that subprocess.
Everything is in public domain.
In Python3 LPDWORD is already defined, so I changed ospipen.py from:
to: