• Home
  • Raw
  • Download

Lines Matching refs:ConfigParser

1 :mod:`ConfigParser` --- Configuration file parser
4 .. module:: ConfigParser
14 The :mod:`ConfigParser` module has been renamed to :mod:`configparser` in
24 This module defines the class :class:`~ConfigParser.ConfigParser`. The :class:`~ConfigParser.Conf…
77 Default values can be specified by passing them into the :class:`~ConfigParser.ConfigParser`
82 type can be passed to the :class:`~ConfigParser.ConfigParser` constructor. For example, if a
112 .. class:: ConfigParser([defaults[, dict_type[, allow_no_value]]])
138 Derived class of :class:`~ConfigParser.ConfigParser` that implements a more-sane variant of
218 parameter is false. This is relevant only for the :class:`~ConfigParser.ConfigParser` class.
282 files exist, the :class:`~ConfigParser.ConfigParser` instance will contain an empty dataset.
287 import ConfigParser, os
289 config = ConfigParser.ConfigParser()
341 :class:`RawConfigParser` (or :class:`~ConfigParser.ConfigParser` with *raw* parameters set to
379 You don't necessarily need to subclass a ConfigParser to use this method, you
384 cfgparser = ConfigParser()
394 ConfigParser Objects
397 The :class:`~ConfigParser.ConfigParser` class extends some methods of the
401 .. method:: ConfigParser.get(section, option[, raw[, vars]])
411 .. method:: ConfigParser.items(section[, raw[, vars]])
425 :class:`~ConfigParser.ConfigParser`, with the following addition:
442 import ConfigParser
444 config = ConfigParser.RawConfigParser()
449 # mode of ConfigParser's respective set functions, you can assign
467 import ConfigParser
469 config = ConfigParser.RawConfigParser()
483 To get interpolation, you will need to use a :class:`~ConfigParser.ConfigParser` or
486 import ConfigParser
488 config = ConfigParser.ConfigParser()
503 import ConfigParser
506 config = ConfigParser.SafeConfigParser({'bar': 'Life', 'baz': 'hard'})
519 except ConfigParser.NoSectionError:
527 otherwise conform to the syntax supported by :mod:`ConfigParser`. The
533 >>> import ConfigParser
545 >>> config = ConfigParser.RawConfigParser(allow_no_value=True)
559 ConfigParser.NoOptionError: No option 'does-not-exist' in section: 'mysqld'