Skip to content

Instantly share code, notes, and snippets.

@radix
radix / foolin.py
Created December 20, 2014 18:41
Example of using an Effect to add scope to nested effects
from __future__ import print_function
from characteristic import attributes
from effect import Effect, perform, ConstantIntent, base_dispatcher, sync_performer
from effect.dispatcher import TypeDispatcher, ComposedDispatcher
@attributes(['name'])
class MyThing(object):
"""Intent."""