(name, duplex=False)
return {name_recv: recv, name_send: send}
Create two pipes for sending/receiving data.
Create two pipes for sending/receiving data.
Create two pipes for sending / receiving data .
def create_pipe(name, duplex=False):
    """Create two pipes for sending/receiving data."""
    name_recv = 'PIPE_{}_RECV'.format(name)
    name_send = 'PIPE_{}_SEND'.format(name)
    recv, send = Pipe(duplex=duplex)
    return {name_recv: recv, name_send: send}
def create_pipe ( name , duplex = False ) : name_recv = 'PIPE_{}_RECV' . format ( name ) name_send = 'PIPE_{}_SEND' . format ( name ) recv , send = Pipe ( duplex = duplex ) return { name_recv : recv , name_send : send }