Weak Reference
Object Attributes
-
%for i in sorted(obj.__dict__.keys(), key=str):
- ${util.saferepr(obj.__dict__[i])|h}
%if hasattr(obj.__dict__[i],'__doc__'):${obj.__dict__[i].__doc__}
%endif
%endfor
%for i in['__class__','__getattr__','__setattr__', '__getattribute__',"__del__","__init__","__str__","__repr__"]:
%if hasattr(obj,i):
- ${util.saferepr(getattr(obj,i))|h} %endif %endfor
Objects Referring to this Object
%if getGC:
%try:
%if hasattr(obj,'__slots__') and obj.__slots__:
%try:
Greyed entries may be less interesting and more likely the rendering of this page itself.
-
%for i in gc.get_referrers(obj):
- ${util.saferepr(i)|h} %endfor
Object Attributes
-
%for i in obj.__slots__:
- ${util.saferepr(getattr(obj,i))|h}
%if hasattr(getattr(obj,i),'__doc__'):${getattr(obj,i).__doc__}
%endif
%endfor
%except:
${traceback.format_exc()|h}
Documentation String
${obj.__doc__}
Source Code
%if hasattr(obj,"__globals__") and 'txt' in obj.__globals__: ${util.saferepr(obj.__globals__['txt'])|h} %elif not getsource: %try: ${inspect.getsource(obj)|h} %except Exception as e:%if isinstance(obj, (list, collections.deque,set)):Inspect: No Source Code Found: ${e}
%endtry %else: %try: ${getsource(obj)|h} %except Exception as e:Dill: No Source Code Found: ${e}
%endtry %endif
List Contents (${len(obj)} items)
-
%for n, i in enumerate(obj):
%endfor
Dict Contents (${len(obj)} items)
-
%for i in sorted(obj.keys(),key=str):
%if isinstance(i,str):
%elif isinstance(i,tuple):
%elif isinstance(i,(int,float)):
%elif isinstance(i,int):
%endif
- ${util.saferepr(obj[i])|h} %endfor