module documentation

This module provides some functions and classes to record and report references to live object instances. If you want live objects for a particular class to be tracked, you only have to subclass from object_ref (instead of object). About performance: This library has a minimal performance impact when enabled, and no performance penalty at all when disabled (as object_ref becomes just an alias to object in that case).

Class object_ref Inherit from this class to a keep a record of live instances
Function format_live_refs Return a tabular representation of tracked objects
Function get_oldest Get the oldest object for a specific class name
Function iter_all Iterate over all objects of the same class by its class name
Function print_live_refs Print tracked objects
Variable live_refs Undocumented
Variable NoneType Undocumented
def format_live_refs(ignore=NoneType): (source)

Return a tabular representation of tracked objects

def get_oldest(class_name): (source)

Get the oldest object for a specific class name

def iter_all(class_name): (source)

Iterate over all objects of the same class by its class name

def print_live_refs(*a, **kw): (source)

Print tracked objects

NoneType = (source)

Undocumented