def __init__ ( self, aClass, allow_none = True, adapt = 'no',
                   module = '' ):
        self._allow_none = allow_none
        self.adapt       = AdaptMap[ adapt ]
        self.module      = module
        if isinstance( aClass, basestring ):
            self.aClass = aClass
        else:
            if not isinstance( aClass, ClassTypes ):
                aClass = aClass.__class__
            self.aClass = aClass
            self.set_fast_validate()
Creates a TraitInstance handler.
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitInstance.__init__