{ } Raw JSON

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

function

astropy.extern.configobj.configobj:Section.__setitem__

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

Signature

def   __setitem__ ( self key value unrepr = False )

Summary

Correctly set a value.

Extended Summary

Making dictionary values Section instances. (We have to special case 'Section' instances - which are also dicts)

Keys must be strings. Values need only be strings (or lists of strings) if main.stringify is set.

unrepr must be set when setting a value to a dictionary, without creating a new sub-section.

Aliases

  • astropy.config.configuration.configobj.Section.__setitem__