/usr/local/lib/python3.6/site-packages/dill/__pycache__
NameSizeModeActions
detect.cpython-36.pyc86530644editdlrm
info.cpython-36.pyc104980644editdlrm
objtypes.cpython-36.pyc5050644editdlrm
pointers.cpython-36.pyc34060644editdlrm
settings.cpython-36.pyc3970644editdlrm
source.cpython-36.pyc267190644editdlrm
temp.cpython-36.pyc73020644editdlrm
_dill.cpython-36.pyc423680644editdlrm
_objects.cpython-36.pyc141340644editdlrm
__diff.cpython-36.pyc58540644editdlrm
__init__.cpython-36.pyc35310644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/dill/__pycache__/pointers.cpython-36.pyc (3406B)
3 8%Egs@stdddddgZddlZddlZddlmZdd lmZffd dZdffd dZ dffd dZ d ffddZ eZ dS)parent referenceatparentschildrenN) _proxy_helper)_locate_objectcCs*d}t||||}|j}||kr&dS|S)al >>> listiter = iter([4,5,6,7]) >>> obj = parent(listiter, list) >>> obj == [4,5,6,7] # actually 'is', but don't have handle any longer True NOTE: objtype can be a single type (e.g. int or list) or a tuple of types. WARNING: if obj is a sequence (e.g. list), may produce unexpected results. Parent finds *one* parent (e.g. the last member of the sequence). rN)rpop)objobjtypeignoredepthchainrr7/usr/local/lib/python3.6/site-packages/dill/pointers.pyrs csPtj}fdd}t|ds"|fn|}dd|D}t||||ddd}|S) zFind the chain of referents for obj. Chain will end with obj. objtype: an object type or tuple of types to search for depth: search depth (e.g. depth=2 is 'grandparents') ignore: an object or tuple of objects to ignore in the search cs t|S)N) isinstance)x)r rr-szparents..__len__css|]}t|VqdS)N)id).0r rrr 0szparents..Nr)gcZ get_referentshasattr find_chain)r r rr edge_func predicaterr)r rr%s  csHtj}fdd}t|ds"|fn|}dd|D}t|||||}|S)aFind the chain of referrers for obj. Chain will start with obj. objtype: an object type or tuple of types to search for depth: search depth (e.g. depth=2 is 'grandchildren') ignore: an object or tuple of objects to ignore in the search NOTE: a common thing to ignore is all globals, 'ignore=(globals(),)' NOTE: repeated calls may yield different results, as python stores the last value in the special variable '_'; thus, it is often good to execute something to replace '_' (e.g. >>> 1+1). cs t|S)N)r)r)r rrrDszchildren..rcss|]}t|VqdS)N)r)rr rrrrGszchildren..)rZ get_referrersrr)r r rr rrrr)r rr6s  cCst|g}t|di}t|di}t|}|jt||jt||jt||jt||jt||jttj|jttjdtjx|rl|jd} || r| g} x*|t| dk r|t| } | j| qW| S|t| } | |kr|| } |jt| xT| D]L} t| |kr0qt| |kr| d|t| <| |t| <|j| qWqW|gS)Nrr) rsetaddsys _getframerZcollectr append)r rrZ max_depthZ extra_ignorequeuerrr targetrZtdepthZ referrerssourcerrrrSs@       r) __all__rr"Z_dillrrr rrrrrZ refobjectrrrr s   $