def __init__ ( self, aFunc ):
        if not isinstance( aFunc, CallableTypes ):
            raise TraitError, "Argument must be callable."
        self.aFunc = aFunc
        self.fast_validate = ( 13, aFunc )
Creates a TraitFunction handler.
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitFunction.__init__