What\'s the best way to toggle decorators on and off, without actually going to each decoration and commenting it out? Say you have a benchmarking decorator:
another straight way:
# mymodule.py from deco import benchmark class foo(object): def f(): # code if : f = benchmark(f) def g(): # more code if : g = benchmark(g)