parameters: (self, configType, section, option, default=None, type=None,
                    warn_on_default=True, raw=False)
return_statement: return default
docstring: Return a value for configType section option, or default.
  
          If type is not None, return a value of that type.  Also pass raw
          to the config parser.  First try to return a valid value
          (including type) from a user configuration. If that fails, try
          the default configuration. If that fails, return default, with a
          default of None.
  
          Warn if either user or default configurations have an invalid value.
          Warn if default is returned and warn_on_default is True.
docstring_summary: Return a value for configType section option, or default.
docstring_tokens: Return a value for configType section option or default .
function: def GetOption(self, configType, section, option, default=None, type=None,
                    warn_on_default=True, raw=False):
          """Return a value for configType section option, or default.
  
          If type is not None, return a value of that type.  Also pass raw
          to the config parser.  First try to return a valid value
          (including type) from a user configuration. If that fails, try
          the default configuration. If that fails, return default, with a
          default of None.
  
          Warn if either user or default configurations have an invalid value.
          Warn if default is returned and warn_on_default is True.
          """
          try:
              if self.userCfg[configType].has_option(section, option):
                  return self.userCfg[configType].Get(section, option,
                                                      type=type, raw=raw)
          except ValueError:
              warning = ('\n Warning: config.py - IdleConf.GetOption -\n'
                         ' invalid %r value for configuration option %r\n'
                         ' from section %r: %r' %
                         (type, option, section,
                         self.userCfg[configType].Get(section, option, raw=raw)))
              _warn(warning, configType, section, option)
          try:
              if self.defaultCfg[configType].has_option(section,option):
                  return self.defaultCfg[configType].Get(
                          section, option, type=type, raw=raw)
          except ValueError:
              pass
          #returning default, print warning
          if warn_on_default:
              warning = ('\n Warning: config.py - IdleConf.GetOption -\n'
                         ' problem retrieving configuration option %r\n'
                         ' from section %r.\n'
                         ' returning default value: %r' %
                         (option, section, default))
              _warn(warning, configType, section, option)
          return default
function_tokens: def GetOption ( self , configType , section , option , default = None , type = None , warn_on_default = True , raw = False ) : try : if self . userCfg [ configType ] . has_option ( section , option ) : return self . userCfg [ configType ] . Get ( section , option , type = type , raw = raw ) except ValueError : warning = ( '\n Warning: config.py - IdleConf.GetOption -\n' ' invalid %r value for configuration option %r\n' ' from section %r: %r' % ( type , option , section , self . userCfg [ configType ] . Get ( section , option , raw = raw ) ) ) _warn ( warning , configType , section , option ) try : if self . defaultCfg [ configType ] . has_option ( section , option ) : return self . defaultCfg [ configType ] . Get ( section , option , type = type , raw = raw ) except ValueError : pass #returning default, print warning if warn_on_default : warning = ( '\n Warning: config.py - IdleConf.GetOption -\n' ' problem retrieving configuration option %r\n' ' from section %r.\n' ' returning default value: %r' % ( option , section , default ) ) _warn ( warning , configType , section , option ) return default