Noob confused by ConfigParser defaults
Ian Pilcher
arequipeno at gmail.com
Sat Feb 18 17:47:29 EST 2017
I am trying to use ConfigParser for the first time (while also writing
my first quasi-serious Python program). Assume that I want to parse a
a configuration file of the following form:
[section-1]
option-1 = value1
option-2 = value2
[section-2]
option-1 = value3
option-2 = value4
How do a set a default for option-1 *only* in section-1?
--
========================================================================
Ian Pilcher arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================
More information about the Python-list
mailing list