def nonblocking(pipe):
 flags = fcntl.fcntl(pipe, fcntl.F_GETFL)
 fcntl.fcntl(pipe, fcntl.F_SETFL, (flags | os.O_NONBLOCK))
 return pipe

def nonblocking ( pipe ) : flags = fcntl . fcntl ( pipe , fcntl . F_GETFL ) fcntl . fcntl ( pipe , fcntl . F_SETFL , ( flags | os . O_NONBLOCK ) ) return pipe
set python file object to nonblocking mode .