parameters: (self, value)
docstring: Changes the default value (and current value too) for this Flag.
docstring_summary: Changes the default value (and current value too) for this Flag.
docstring_tokens: Changes the default value ( and current value too ) for this Flag .
function: def SetDefault(self, value):
      """Changes the default value (and current value too) for this Flag."""
      # We can't allow a None override because it may end up not being
      # passed to C++ code when we're overriding C++ flags.  So we
      # cowardly bail out until someone fixes the semantics of trying to
      # pass None to a C++ flag.  See swig_flags.Init() for details on
      # this behavior.
      if value is None and self.allow_override:
        raise DuplicateFlag(self.name)
  
      self.default = value
      self.Unparse()
      self.default_as_str = self.__GetParsedValueAsString(self.value)
function_tokens: def SetDefault ( self , value ) : # We can't allow a None override because it may end up not being # passed to C++ code when we're overriding C++ flags.  So we # cowardly bail out until someone fixes the semantics of trying to # pass None to a C++ flag.  See swig_flags.Init() for details on # this behavior. if value is None and self . allow_override : raise DuplicateFlag ( self . name ) self . default = value self . Unparse ( ) self . default_as_str = self . __GetParsedValueAsString ( self . value )