def ChannelPair():
    """Very simple function returning a connected pair of channels"""
    r1, w2 = os.pipe()
    r2, w1 = os.pipe()
    return ( SimpleChannelEndpoint(r1, w1), SimpleChannelEndpoint(r2, w2) )
Very simple function returning a connected pair of channels
recipes/Python/576520_Multithreaded_MultiplexerDemultiplexer_allow/recipe-576520.py