Package cherrypy :: Package lib :: Module gctools :: Class ReferrerTree
[hide private]
[frames] | no frames]

Class ReferrerTree

source code

object --+
         |
        ReferrerTree

An object which gathers all referrers of an object to a given depth.

Instance Methods [hide private]
 
__init__(self, ignore=None, maxdepth=2, maxparents=10)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
ascend(self, obj, depth=1)
Return a nested list containing referrers of the given object.
source code
 
peek(self, s)
Return s, restricted to a sane length.
source code
 
_format(self, obj, descend=True)
Return a string representation of a single object.
source code
 
format(self, tree)
Return a list of string reprs from a nested list of referrers.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  peek_length = 40
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ignore=None, maxdepth=2, maxparents=10)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)