def long_validate ( self, object, name, value ):
        try:
            valid_types = list(long_fast_validate[1:])
            valid_types.remove(None)
            if (isinstance( value, tuple(valid_types) ) and
                ((self._low is None) or
                 (self._exclude_low and (self._low < value)) or
                 ((not self._exclude_low) and (self._low <= value))) and
                ((self._high is None) or
                 (self._exclude_high and (self._high > value)) or
                 ((not self._exclude_high) and (self._high >= value)))):
               return value
        except:
            pass

        self.error( object, name, value )
:returns: The length of the dictionary
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseRange.long_validate--crossover with--dataset/ETHPy150Open dcos/dcos-cli/dcos/config.py/MutableToml.__len__