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
-
__delitem__ -
__getitem__ -
__init__ -
__reduce__ -
__repr__ -
__setitem__ -
__setstate__ -
_initialise -
_interpolate -
as_bool -
as_float -
as_int -
as_list -
clear -
dict -
get -
items -
iteritems -
iterkeys -
itervalues -
keys -
merge -
pop -
popitem -
rename -
restore_default -
restore_defaults -
setdefault -
update -
values -
walk
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