return list of all parent collectors up to ourself.
def listchain(self):
origin: test.collect.Collector
where:
function source:
def listchain(self):
""" return list of all parent collectors up to ourself. """
l = [self]
while 1:
x = l[-1]
if x.parent is not None:
l.append(x.parent)
else:
l.reverse()
return l
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Instance.listchain.0
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Instance.listchain.1
called in /home/johnny/projects/merlinux/py/dist/py/test/collect.py
traceback test.collect.Instance.listchain.2
called in /home/johnny/projects/merlinux/py/dist/py/test/tkinter/util.py