Module Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Str ClassDef bases NameLoad body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad While CompareIsNot NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryFinally body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad finalbody Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A Queue N/A sys N/A threading N/A logging N/A logger N/A N/A logging getLogger __name__ N/A N/A N/A logger addHandler N/A N/A logging NullHandler N/A __all__ N/A Pool Pool N/A object N/A N/A 
    Simplistic thread pool.
     WorkerExit N/A object N/A N/A 
        Sentinel class used to shut down threads.
         __call__ N/A N/A self N/A N/A N/A 
            Does nothing.
             N/A None N/A N/A Worker N/A N/A threading Thread N/A N/A 
        Pool worker thread.
         __init__ N/A N/A self pool N/A N/A N/A 
            Initializes an instance from a parent pool.
             N/A N/A N/A N/A super N/A Pool Worker self __init__ N/A N/A self pool pool N/A run N/A N/A self N/A N/A N/A 
            Spins on the job queue reading jobs and writing results.
             N/A obj None N/A N/A obj N/A N/A self pool sentinel N/A N/A N/A obj args kwargs N/A N/A N/A N/A self pool job_queue get N/A N/A N/A N/A N/A res N/A obj args kwargs N/A N/A res None N/A N/A N/A N/A N/A N/A self pool res_queue put res N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger error %s e N/A N/A N/A N/A N/A N/A self pool job_queue task_done N/A N/A N/A sentinel N/A WorkerExit __init__ N/A N/A self num_threads use_daemons N/A 32 True N/A N/A 
        Initializes an instance with a certain number of threads.
         N/A N/A self num_threads num_threads N/A N/A self job_queue N/A N/A Queue Queue N/A N/A self res_queue N/A N/A Queue Queue N/A N/A self threads N/A N/A N/A self closed False N/A _ N/A xrange N/A self num_threads N/A N/A N/A N/A N/A self threads append N/A N/A Pool Worker self N/A thread N/A self threads N/A N/A N/A thread daemon use_daemons N/A N/A N/A thread start N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self N/A ignored N/A N/A N/A N/A self close N/A close N/A N/A self N/A N/A N/A 
        Properly destructs the pool by killing the threads.

        After executing this method the pool is no longer operational.
         N/A N/A self closed N/A N/A N/A N/A N/A self join N/A _ N/A xrange N/A self num_threads N/A N/A N/A N/A self push N/A self sentinel N/A thread N/A self threads N/A N/A N/A N/A thread join N/A N/A self closed True N/A get_results N/A N/A self N/A N/A N/A 
        Attemps to retrieve all results, calling this before calling join()
        might result in very weird behavior.
         N/A results N/A N/A N/A N/A N/A N/A self res_queue empty N/A N/A N/A N/A results append N/A N/A N/A self res_queue get N/A N/A N/A N/A self res_queue task_done N/A results N/A push N/A N/A self obj N/A args kwargs N/A N/A 
        Pushes a job onto the queue.

        If this pool is closed then a RuntimeError is raised.
         N/A N/A self closed N/A N/A N/A RuntimeError Can't add jobs to a closed pool. N/A N/A N/A N/A self job_queue put N/A obj args kwargs N/A join N/A N/A self N/A N/A N/A 
        Waits for every enqueued job to finish.
         N/A N/A N/A N/A self job_queue join N/A N/A