def create_pipe():
 (r, w) = os.pipe()
 if HAS_FNCTL:
  fcntl.fcntl(r, fcntl.F_SETFL, os.O_NONBLOCK)
  fcntl.fcntl(w, fcntl.F_SETFL, os.O_NONBLOCK)
  _set_fd_cloexec(r)
  _set_fd_cloexec(w)
 return (r, w)

def create_pipe ( ) : ( r , w ) = os . pipe ( ) if HAS_FNCTL : fcntl . fcntl ( r , fcntl . F_SETFL , os . O_NONBLOCK ) fcntl . fcntl ( w , fcntl . F_SETFL , os . O_NONBLOCK ) _set_fd_cloexec ( r ) _set_fd_cloexec ( w ) return ( r , w )
create a non-blocking read/write pipe .