Module Expr Str Import alias identifier Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body If BoolOpAnd Call NameLoad NameLoad UnaryOpNot Call NameLoad body If NameLoad body For NameStore Call NameLoad NameLoad body Expr Yield NameLoad Return Raise Call NameLoad Str For NameStore Call NameLoad Call AttributeLoad NameLoad attr body TryExcept body Expr Yield Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return orelse While NameLoad body TryExcept body Expr Yield Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str If CompareNotIn Str AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Return NameLoad Import alias Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad orelse Return NameLoad decorator_list Call AttributeLoad NameLoad attr
N/A N/A Defines various functions for working with queues. N/A Queue queue_module N/A sys python_toolbox caching python_toolbox import_tools is_multiprocessing_queue N/A N/A queue N/A N/A N/A Return whether `queue` is a multiprocessing queue. N/A N/A N/A N/A queue __module__ startswith multiprocessing N/A dump N/A N/A queue N/A N/A N/A 
    Empty all pending items in a queue and return them in a list.
    
    Use only when no other processes/threads are reading from the queue.
     N/A N/A list N/A iterate queue N/A iterate N/A N/A queue block limit_to_original_size _prefetch_if_no_qsize N/A False False False N/A N/A 
    Iterate over the items in the queue.
    
    `limit_to_original_size=True` will limit the number of the items fetched to
    the original number of items in the queue in the beginning.
     N/A limit_to_original_size N/A N/A N/A N/A is_multiprocessing_queue queue N/A N/A _platform_supports_multiprocessing_qsize N/A N/A _prefetch_if_no_qsize N/A N/A item N/A dump queue N/A N/A N/A item N/A N/A N/A NotImplementedError This platform doesn't support `qsize` for `multiprocessing` queues, so you can't iterate on it while limiting to original queue size. What you can do is set `_prefetch_if_no_qsize=True` to have the entire queue prefetched before yielding the items. N/A _ N/A xrange N/A N/A queue qsize N/A N/A N/A N/A N/A N/A N/A queue get block block N/A N/A N/A N/A queue_module Empty N/A N/A N/A N/A True N/A N/A N/A N/A N/A N/A N/A queue get block block N/A N/A N/A N/A queue_module Empty N/A N/A N/A get_item N/A N/A queue i N/A N/A N/A 
    Get an item from the queue by index number without removing any items.
    
    Note: This was designed for `Queue.Queue`. Don't try to use this, for
    example, on `multiprocessing.Queue`.
     N/A N/A queue mutex N/A N/A N/A N/A queue queue N/A i N/A queue_as_list N/A N/A queue N/A N/A N/A 
    Get all the items in the queue as a `list` without removing them.
    
    Note: This was designed for `Queue.Queue`. Don't try to use this, for
    example, on `multiprocessing.Queue`.
     N/A N/A queue mutex N/A N/A N/A list N/A queue queue N/A _platform_supports_multiprocessing_qsize N/A N/A N/A N/A N/A 
    Return whether this platform supports `multiprocessing.Queue().qsize()`.
    
    I'm looking at you, Mac OS.
     N/A N/A multiprocessing N/A sys modules N/A N/A N/A N/A N/A import_tools exists multiprocessing N/A N/A False N/A multiprocessing N/A multiprocessing_queue N/A N/A multiprocessing Queue N/A N/A N/A N/A N/A multiprocessing_queue qsize N/A N/A N/A NotImplementedError N/A N/A False N/A N/A True N/A N/A N/A caching cache