def get_value ( self, object, name, trait = None ):
        """ Returns the current value of a property-based trait.
        """
        cname = TraitsCache + name
        value = object.__dict__.get( cname, Undefined )
        if value is Undefined:
            if trait is None:
                trait = object.trait( name )

            object.__dict__[ cname ] = value = \
                trait.default_value_for( object, name )

        return value
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitType.get_value/original