1 ###############################################
3 # Odds and ends for debugging
5 ###############################################
7 def print_call_chain(*args
):
9 print(" ".join(map(str, args
)))
12 name
= f
.f_code
.co_name
13 s
= f
.f_locals
.get('self', None)
15 c
= getattr(s
, "__class__", None)
17 name
= "%s.%s" % (c
.__name
__, name
)
18 print("Called from: %s %s" % (name
, f
.f_lineno
))