MCPcopy Index your code
hub / github.com/LabPy/lantz / _dget

Function _dget

lantz/feat.py:44–53  ·  view source on GitHub ↗
(adict, instance=MISSING, key=MISSING)

Source from the content-addressed store, hash-verified

42
43
44def _dget(adict, instance=MISSING, key=MISSING):
45
46 try:
47 adict = adict[instance]
48 except KeyError:
49 adict = adict[MISSING]
50 try:
51 return adict[key]
52 except KeyError:
53 return adict[MISSING]
54
55def _dset(adict, value, instance=MISSING, key=MISSING):
56 if instance not in adict:

Callers 8

rebuildMethod · 0.70
post_getMethod · 0.70
pre_setMethod · 0.70
getitemMethod · 0.70
setitemMethod · 0.70
get_cacheMethod · 0.70
__getattr__Method · 0.70
__setattr__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected