def make_or_pipe(pipe):
 p1 = OrPipe(pipe)
 p2 = OrPipe(pipe)
 p1._partner = p2
 p2._partner = p1
 return (p1, p2)

def make_or_pipe ( pipe ) : p1 = OrPipe ( pipe ) p2 = OrPipe ( pipe ) p1 . _partner = p2 p2 . _partner = p1 return ( p1 , p2 )
wraps a pipe into two pipe-like objects which are "or"d together to affect the real pipe .