Module Import alias Import alias ImportFrom alias Assign NameStore Num FunctionDef arguments args defaults body Global identifier AugAssignAdd NameStore Num Return NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Num Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Pass finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Num Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Num Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Num NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq NameLoad Num
N/A N/A gevent N/A random credis.geventpool ResourcePool N/A counter 0 get_resource N/A N/A N/A N/A N/A counter N/A counter 1 N/A counter N/A TestException N/A Exception N/A N/A N/A worker_normal N/A N/A pool N/A N/A N/A res N/A N/A pool acquire N/A N/A N/A gevent sleep 0.05 N/A N/A N/A pool release res N/A worker_exception N/A N/A pool N/A N/A N/A res N/A N/A pool acquire N/A N/A N/A N/A N/A N/A N/A gevent sleep 0.05 N/A N/A TestException bad worker N/A N/A N/A TestException N/A N/A N/A N/A N/A N/A pool release res N/A worker_using_with N/A N/A pool N/A N/A N/A N/A N/A N/A N/A pool ctx res N/A N/A N/A N/A gevent sleep 0.05 N/A N/A TestException bad worker1 N/A N/A N/A TestException N/A N/A N/A worker_using_with2 N/A N/A pool N/A N/A N/A N/A N/A N/A N/A pool ctx res N/A N/A N/A N/A gevent sleep 0.05 N/A N/A TestException bad worker2 N/A N/A N/A TestException N/A N/A N/A random_worker N/A N/A N/A N/A N/A N/A N/A random choice N/A worker_normal worker_exception worker_using_with worker_using_with2 N/A N/A pool N/A ResourcePool 10 get_resource N/A threads N/A N/A N/A gevent spawn N/A random_worker pool N/A i N/A xrange 1000 N/A N/A N/A gevent joinall threads N/A N/A N/A pool alloc_count N/A pool max_count N/A N/A N/A pool used_count 0 N/A N/A counter 10