def mydeco(count):

    def multipass(fn):

        def caller(*args, **kw):
            return [fn(*args, **kw) for x in range(count)]
return caller
return multipass

@mydeco(5)
def printer(text):
    print(text)
printer('Yabbadabbadoo!')
Python decorator with options