#def my_problematic_function(x):
def my_problematic_function(x, call_count=[]):
call_count.append(1)
print("ZMD DEBUG call #{}".format(len(call_count)))
import traceback; traceback.print_stack()
result = do_stuff(x)
etc()
Monthly Archives: August 2014
Preemptive Low-Status Behavior Is Not Always a Good Idea
"... and in conclusion, please don't hit me with a mastodon bone."
"What? I wasn't planning on hitting you with a mastodon bone. Although—now that you mention it, that does sound fun!"