In [1]:
def printer(*args, **kwargs):
print args, kwargs
def pretty_printer(*args, **kwargs):
import pprint
pprint.pprint(args)
pprint.pprint(kwargs)
def errorer(*args, **kwargs):
raise Exception
In [2]:
import nmevent
do = nmevent.Event()
In [3]:
do += printer
do += pretty_printer
In [4]:
do(1, 2, a=3)
In [5]:
do += printer
do(1, 2, a=3)
In [6]:
do2 = nmevent.Event()
do2 += errorer
do2 += printer
do2(1, 2, a=3)
Overall: very low
In [ ]: