Often it is necessary to print an object to debugging log. This small utility function can help to print allĀ properties:
import inspect, pprint def dprint(object): props=filter(lambda t: not t[0].startswith('__'), inspect.getmembers(object, lambda m: not inspect.ismethod(m))) pprint.pprint(props)