Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/t/r/traits4-HEAD/py_core/has_traits.py   traits4(Download)
from ctraits import *
import types
 
from dispatchers import _immediate_dispatcher
from notifiers import FunctionNotifier, BoundMethodNotifier
            notifier = BoundMethodNotifier(cb)
        elif isinstance(cb, types.FunctionType):
            notifier = FunctionNotifier(cb)
        else:
            raise TypeError('not yet supported for this type %s' % type(cb))