Source

pylightagent / exp.py

Full commit
def foo(start):
    while 1:
        v = yield start
        print v
        start = v

def i(filter_func):
    print vars()
    print locals()
    def processor(method):
        print vars()
        print locals()
        return method
    return processor

class Bar(object):
    @i(lambda _: 1)
    def f(self, a):
       print a