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

Method GetSubList

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

Source from the content-addressed store, hash-verified

43 def IsExpandable(self):
44 return not not dir(self.object)
45 def GetSubList(self):
46 keys = dir(self.object)
47 sublist = []
48 for key in keys:
49 try:
50 value = getattr(self.object, key)
51 except AttributeError:
52 continue
53 item = make_objecttreeitem(
54 str(key) + " =",
55 value,
56 lambda value, key=key, object_=self.object:
57 setattr(object_, key, value))
58 sublist.append(item)
59 return sublist
60
61class ClassTreeItem(ObjectTreeItem):
62 def IsExpandable(self):

Callers

nothing calls this directly

Calls 3

make_objecttreeitemFunction · 0.85
strFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected