Module Expr Str ImportFrom alias identifier TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias Import alias Assign NameStore ListLoad Str Str Str Str Str ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore BinOpSub AttributeLoad NameLoad attr Num If CompareLtE NameLoad Num body If CompareLt NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body While AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore UnaryOpNot Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore CompareLtEq Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If CompareGt AttributeLoad NameLoad attr Num body If UnaryOpNot NameLoad body If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad orelse If CompareIs NameLoad NameLoad body While CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareLt NameLoad Num body Raise Call NameLoad Str orelse Assign NameStore BinOpAdd Call NameLoad NameLoad While CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore BinOpSub NameLoad Call NameLoad If CompareLtE NameLoad Num body Raise NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If UnaryOpNot NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr body Raise NameLoad orelse If CompareIs NameLoad NameLoad body While UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareLt NameLoad Num body Raise Call NameLoad Str orelse Assign NameStore BinOpAdd Call NameLoad NameLoad While UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore BinOpSub NameLoad Call NameLoad If CompareLtE NameLoad Num body Raise NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A A multi-producer, multi-consumer queue. time time _time N/A N/A N/A threading _threading N/A N/A N/A ImportError N/A N/A dummy_threading _threading collections deque N/A heapq N/A __all__ N/A Empty Full Queue PriorityQueue LifoQueue Empty N/A Exception N/A N/A Exception raised by Queue.get(block=0)/get_nowait(). N/A N/A Full N/A Exception N/A N/A Exception raised by Queue.put(block=0)/put_nowait(). N/A N/A Queue N/A N/A N/A Create a queue object with a given maximum size.

    If maxsize is <= 0, the queue size is infinite.
     __init__ N/A N/A self maxsize N/A 0 N/A N/A N/A self maxsize maxsize N/A N/A N/A self _init maxsize N/A N/A self mutex N/A N/A _threading Lock N/A N/A self not_empty N/A N/A _threading Condition N/A self mutex N/A N/A self not_full N/A N/A _threading Condition N/A self mutex N/A N/A self all_tasks_done N/A N/A _threading Condition N/A self mutex N/A N/A self unfinished_tasks 0 N/A task_done N/A N/A self N/A N/A N/A Indicate that a formerly enqueued task is complete.

        Used by Queue consumer threads.  For each get() used to fetch a task,
        a subsequent call to task_done() tells the queue that the processing
        on the task is complete.

        If a join() is currently blocking, it will resume when all items
        have been processed (meaning that a task_done() call was received
        for every item that had been put() into the queue).

        Raises a ValueError if called more times than there were items
        placed in the queue.
         N/A N/A N/A N/A self all_tasks_done acquire N/A N/A N/A unfinished N/A N/A self unfinished_tasks 1 N/A N/A unfinished 0 N/A N/A N/A unfinished 0 N/A N/A N/A ValueError task_done() called too many times N/A N/A N/A N/A self all_tasks_done notify_all N/A N/A self unfinished_tasks unfinished N/A N/A N/A N/A N/A self all_tasks_done release N/A join N/A N/A self N/A N/A N/A Blocks until all items in the Queue have been gotten and processed.

        The count of unfinished tasks goes up whenever an item is added to the
        queue. The count goes down whenever a consumer thread calls task_done()
        to indicate the item was retrieved and all work on it is complete.

        When the count of unfinished tasks drops to zero, join() unblocks.
         N/A N/A N/A N/A self all_tasks_done acquire N/A N/A N/A N/A self unfinished_tasks N/A N/A N/A N/A N/A self all_tasks_done wait N/A N/A N/A N/A N/A self all_tasks_done release N/A qsize N/A N/A self N/A N/A N/A Return the approximate size of the queue (not reliable!). N/A N/A N/A N/A self mutex acquire N/A n N/A N/A self _qsize N/A N/A N/A N/A self mutex release N/A n N/A empty N/A N/A self N/A N/A N/A Return True if the queue is empty, False otherwise (not reliable!). N/A N/A N/A N/A self mutex acquire N/A n N/A N/A N/A self _qsize N/A N/A N/A N/A self mutex release N/A n N/A full N/A N/A self N/A N/A N/A Return True if the queue is full, False otherwise (not reliable!). N/A N/A N/A N/A self mutex acquire N/A n N/A 0 N/A self maxsize N/A N/A self _qsize N/A N/A N/A N/A self mutex release N/A n N/A put N/A N/A self item block timeout N/A True None N/A N/A Put an item into the queue.

        If optional args 'block' is true and 'timeout' is None (the default),
        block if necessary until a free slot is available. If 'timeout' is
        a positive number, it blocks at most 'timeout' seconds and raises
        the Full exception if no free slot was available within that time.
        Otherwise ('block' is false), put an item on the queue if a free slot
        is immediately available, else raise the Full exception ('timeout'
        is ignored in that case).
         N/A N/A N/A N/A self not_full acquire N/A N/A N/A N/A N/A self maxsize 0 N/A N/A N/A block N/A N/A N/A N/A N/A self _qsize N/A self maxsize N/A N/A Full N/A N/A N/A timeout None N/A N/A N/A N/A N/A self _qsize N/A self maxsize N/A N/A N/A N/A N/A self not_full wait N/A N/A N/A timeout 0 N/A N/A N/A ValueError 'timeout' must be a positive number N/A N/A endtime N/A N/A _time timeout N/A N/A N/A N/A self _qsize N/A self maxsize N/A N/A remaining N/A endtime N/A _time N/A N/A remaining 0.0 N/A N/A Full N/A N/A N/A N/A self not_full wait remaining N/A N/A N/A self _put item N/A N/A self unfinished_tasks 1 N/A N/A N/A N/A self not_empty notify N/A N/A N/A N/A N/A self not_full release N/A put_nowait N/A N/A self item N/A N/A N/A Put an item into the queue without blocking.

        Only enqueue the item if a free slot is immediately available.
        Otherwise raise the Full exception.
         N/A N/A N/A self put item False N/A get N/A N/A self block timeout N/A True None N/A N/A Remove and return an item from the queue.

        If optional args 'block' is true and 'timeout' is None (the default),
        block if necessary until an item is available. If 'timeout' is
        a positive number, it blocks at most 'timeout' seconds and raises
        the Empty exception if no item was available within that time.
        Otherwise ('block' is false), return an item if one is immediately
        available, else raise the Empty exception ('timeout' is ignored
        in that case).
         N/A N/A N/A N/A self not_empty acquire N/A N/A N/A N/A block N/A N/A N/A N/A N/A self _qsize N/A N/A Empty N/A N/A N/A timeout None N/A N/A N/A N/A N/A self _qsize N/A N/A N/A N/A N/A self not_empty wait N/A N/A N/A timeout 0 N/A N/A N/A ValueError 'timeout' must be a positive number N/A N/A endtime N/A N/A _time timeout N/A N/A N/A N/A self _qsize N/A N/A remaining N/A endtime N/A _time N/A N/A remaining 0.0 N/A N/A Empty N/A N/A N/A N/A self not_empty wait remaining N/A item N/A N/A self _get N/A N/A N/A N/A self not_full notify N/A item N/A N/A N/A N/A N/A self not_empty release N/A get_nowait N/A N/A self N/A N/A N/A Remove and return an item from the queue without blocking.

        Only get an item if one is immediately available. Otherwise
        raise the Empty exception.
         N/A N/A N/A self get False N/A _init N/A N/A self maxsize N/A N/A N/A N/A self queue N/A deque N/A _qsize N/A N/A self len N/A len N/A N/A N/A len N/A self queue N/A _put N/A N/A self item N/A N/A N/A N/A N/A N/A self queue append item N/A _get N/A N/A self N/A N/A N/A N/A N/A N/A self queue popleft N/A N/A PriorityQueue N/A Queue N/A N/A Variant of Queue that retrieves open entries in priority order (lowest first).

    Entries are typically tuples of the form:  (priority number, data).
     _init N/A N/A self maxsize N/A N/A N/A N/A self queue N/A N/A _qsize N/A N/A self len N/A len N/A N/A N/A len N/A self queue N/A _put N/A N/A self item heappush N/A N/A heapq heappush N/A N/A N/A heappush N/A self queue item N/A _get N/A N/A self heappop N/A N/A heapq heappop N/A N/A N/A heappop N/A self queue N/A N/A LifoQueue N/A Queue N/A N/A Variant of Queue that retrieves most recently added entries first. _init N/A N/A self maxsize N/A N/A N/A N/A self queue N/A N/A _qsize N/A N/A self len N/A len N/A N/A N/A len N/A self queue N/A _put N/A N/A self item N/A N/A N/A N/A N/A N/A self queue append item N/A _get N/A N/A self N/A N/A N/A N/A N/A N/A self queue pop N/A N/A