I've been doing a lot of debugging lately, and have been using this bit of code to great effect:
from traceback import extract_stack, format_list
ti = 0.0
class rec:
def __init__(self):
self._his = []
def __setattr__(self, key, value):
if key != '_his':
self._his.append((key, value, ti, extract_stack()[:-1]))
self
(
Read more... )