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                                         arequip...@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to