code: def config_string(self):
          
          # Note: _write_to_conf is determined when the value is calculated. This
          # is a hidden function call due to property magic.
          val = self.str_value
          if not self._write_to_conf:
              return ""
  
          if self.orig_type in _BOOL_TRISTATE:
              return "{}{}={}\n" \
                     .format(self.kconfig.config_prefix, self.name, val) \
                     if val != "n" else \
                     "# {}{} is not set\n" \
                     .format(self.kconfig.config_prefix, self.name)
  
          if self.orig_type in _INT_HEX:
              return "{}{}={}\n" \
                     .format(self.kconfig.config_prefix, self.name, val)
  
          # sym.orig_type is STRING
          return '{}{}="{}"\n' \
                 .format(self.kconfig.config_prefix, self.name, escape(val))
docs: See the class documentation.