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

Method GetSubList

Lib/idlelib/stackviewer.py:102–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 return len(self.object) > 0
101
102 def GetSubList(self):
103 sublist = []
104 for key in self.object.keys(): # self.object not necessarily dict.
105 try:
106 value = self.object[key]
107 except KeyError:
108 continue
109 def setfunction(value, key=key, object_=self.object):
110 object_[key] = value
111 item = make_objecttreeitem(key + " =", value, setfunction)
112 sublist.append(item)
113 return sublist
114
115
116def _stackbrowser(parent): # htest #

Callers

nothing calls this directly

Calls 3

make_objecttreeitemFunction · 0.90
keysMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected