MCPcopy Index your code
hub / github.com/python/cpython / GetSubList

Method GetSubList

Lib/idlelib/debugobj.py:83–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 def keys(self):
82 return range(len(self.object))
83 def GetSubList(self):
84 sublist = []
85 for key in self.keys():
86 try:
87 value = self.object[key]
88 except KeyError:
89 continue
90 def setfunction(value, key=key, object_=self.object):
91 object_[key] = value
92 item = make_objecttreeitem(f"{key!r}:", value, setfunction)
93 sublist.append(item)
94 return sublist
95
96class DictTreeItem(SequenceTreeItem):
97 def keys(self):

Callers

nothing calls this directly

Calls 3

keysMethod · 0.95
make_objecttreeitemFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected