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

Method GetSubList

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

Source from the content-addressed store, hash-verified

62 def IsExpandable(self):
63 return True
64 def GetSubList(self):
65 sublist = ObjectTreeItem.GetSubList(self)
66 if len(self.object.__bases__) == 1:
67 item = make_objecttreeitem("__bases__[0] =",
68 self.object.__bases__[0])
69 else:
70 item = make_objecttreeitem("__bases__ =", self.object.__bases__)
71 sublist.insert(0, item)
72 return sublist
73
74class AtomicObjectTreeItem(ObjectTreeItem):
75 def IsExpandable(self):

Callers

nothing calls this directly

Calls 2

make_objecttreeitemFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected