MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / parent

Function parent

embedded/site-packages/dill/pointers.py:17–34  ·  view source on GitHub ↗

>>> 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

(obj, objtype, ignore=())

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_parentFunction · 0.85

Calls 2

parentsFunction · 0.85
popMethod · 0.80

Tested by 1

test_parentFunction · 0.68