def __init__(self, *pipes): self.active_pipes = set() self.active_sources = set() self.active_drains = set() self.active_sinks = set() self._add_pipes(*pipes) self.thread_lock = Lock() self.command_lock = Lock() self.__fd_queue = collections.deque() self.__fdr, self.__fdw = os.pipe() self.thread = None SelectableObject.__init__(self)
def __init__(self): SelectableObject.__init__(self) self.cls = None
def __init__(self, name=None): SelectableObject.__init__(self) Source.__init__(self, name=name) self.__fdr, self.__fdw = os.pipe() self._queue = collections.deque()
def __init__(self, name=None): Pipe.__init__(self, name=name) SelectableObject.__init__(self) self.is_exhausted = False
def __init__(self): SelectableObject.__init__(self)