Skip to content

14rcole/callbacks

Repository files navigation

Callbacks lets you use decorator syntax to set callbacks on methods or functions.

Build Status Coverage Status

from callbacks import supports_callbacks

def callback():
    print "Polly!"

@supports_callbacks
def target():
    print "hello",

target.add_callback(callback)

target() # prints "hello Polly!"

About

Python callbacks library using decorators.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages