This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Gumnos
Recipients Gumnos
Date 2010-05-08.19:56:33
SpamBayes Score 0.035464447
Marked as misclassified No
Message-id <1273348594.74.0.554904911988.issue8666@psf.upfronthosting.co.za>
In-reply-to
Content
Patch to update ConfigParser.py so that the .get* methods can take an optional parameter rather than raising exceptions.  Usage:

  cp = ConfigParser(...)
  # ...
  value = cp.get('MySection', 'MyOption', default='some default')
  i = cp.getint('MySecton', 'MyInt', default=42)
  f = cp.getfloat('MySection', 'MyF', default=3.14)
History
Date User Action Args
2010-05-08 19:56:35Gumnossetrecipients: + Gumnos
2010-05-08 19:56:34Gumnossetmessageid: <1273348594.74.0.554904911988.issue8666@psf.upfronthosting.co.za>
2010-05-08 19:56:33Gumnoslinkissue8666 messages
2010-05-08 19:56:33Gumnoscreate