title: Non blocking read on os.pipe on Windows
body: <p>This question - <a href="https://stackoverflow.com/questions/673844/how-to-read-from-an-os-pipe-without-getting-blocked">How to read from an os.pipe() without getting blocked?</a> - shows a solution how to check if <code>os.pipe</code> has any data for Linux, and for this you need to put the pipe into non-blocking mode:</p>
  
  <pre><code>import os, fcntl
  fcntl.fcntl(thePipe, fcntl.F_SETFL, os.O_NONBLOCK)
  </code></pre>
  
  <p>On Windows we have this:</p>
  
  <pre><code>ImportError: No module named fcntl
  </code></pre>
  
  <p>But <code>os.pipe</code> is there:</p>
  
  <pre><code>&gt;&gt;&gt; os.pipe()
  (3, 4)
  </code></pre>
  
  <p>So, is it possible to do non-blocking read or peek the contents of <code>os.pipe</code> on Windows?</p>