def pipe(name=None):
    if name is None:
        return AnonymousPipe()
    else:
        if not name.startswith("\\\\"):
            name = r"\\.\pipe\%s" % name
        return NamedPipe(name)
Return a pipe. If name is given a :class:`NamedPipe` is returned, otherwise
dataset/ETHPy150Open tjguk/winsys/winsys/ipc.py/pipe