The ConfigParser library defines several classes that you can use to parse the Windows INI style configuration files. I'll describe the format in more detail later in this section. The basic configuration class in the library is called RawConfigParser, which implements a basic configuration file syntax parser with methods to read and write the configuration files. It is possible to use this class directly, but it is more convenient to use two other classes that extends its functionality and provides some convenience methods for accessing the data.
These descendant classes are called ConfigParser and SafeConfigParser; the former extends the . get ( ) and . items ( ) methods and the later extends the . set() method.
Was this article helpful?