Module Expr Str ImportFrom alias identifier TryExcept body ImportFrom alias handlers ExceptHandler body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Num decorator_list decorator_list Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier 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 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 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 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 UnaryOpNot NameLoad body If Call AttributeLoad NameLoad attr body Raise NameLoad orelse If CompareIs NameLoad NameLoad body While Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpAdd Call NameLoad NameLoad While 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 Expr Call AttributeLoad NameLoad attr NameLoad 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 Call AttributeLoad NameLoad attr body Raise NameLoad orelse If CompareIs NameLoad NameLoad body While Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpAdd Call NameLoad NameLoad While 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 NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareGt AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr 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 An adaptation of Py2.3/2.4's Queue module which supports reentrant
behavior, using RLock instead of Lock for its mutex object.

This is to support the connection pool's usage of ``__del__`` to return
connections to the underlying Queue, which can apparently in extremely
rare cases be invoked within the ``get()`` method of the Queue itself,
producing a ``put()`` inside the ``get()`` and therefore a reentrant
condition. time time _time N/A N/A collections deque N/A N/A N/A deque N/A list N/A popleft N/A N/A self N/A N/A N/A N/A N/A self pop 0 N/A N/A N/A __all__ N/A Empty Full Queue 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 __init__ N/A N/A self maxsize N/A 0 N/A N/A Initialize a queue object with a given maximum size.

        If `maxsize` is <= 0, the queue size is infinite.
         N/A N/A N/A threading N/A N/A N/A ImportError N/A N/A dummy_threading threading N/A N/A N/A self _init maxsize N/A N/A self mutex N/A N/A threading RLock 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 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 self _empty 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 N/A self _full 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 block N/A N/A N/A N/A self _full N/A N/A Full N/A N/A N/A timeout None N/A N/A N/A N/A self _full 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 endtime N/A N/A _time timeout N/A N/A N/A self _full 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 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 self _empty N/A N/A Empty N/A N/A N/A timeout None N/A N/A N/A N/A self _empty 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 endtime N/A N/A _time timeout N/A N/A N/A self _empty 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 maxsize maxsize N/A N/A self queue N/A deque N/A _qsize N/A N/A self N/A N/A N/A N/A len N/A self queue N/A _empty N/A N/A self N/A N/A N/A N/A N/A self queue N/A _full N/A N/A self N/A N/A N/A N/A N/A N/A self maxsize 0 N/A N/A len N/A self queue N/A self maxsize 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