{ } Raw JSON

bundles / astropy latest / astropy / extern / configobj / configobj / Section

class

astropy.extern.configobj.configobj:Section

source: /astropy/extern/configobj/configobj.py :456

Signature

class   Section ( parent depth main indict = None name = None )

Members

Summary

A dictionary-like object that represents a section in a config file.

Extended Summary

It does string interpolation if the 'interpolation' attribute of the 'main' object is set to True.

Interpolation is tried first from this object, then from the 'DEFAULT' section of this object, next from the parent and its 'DEFAULT' section, and so on until the main object is reached.

A Section will behave like an ordered dictionary - following the order of the scalars and sections attributes. You can use this to change the order of members.

Iteration follows the order: scalars, then sections.

Aliases

  • astropy.config.configuration.configobj.Section