Raymond Hettinger <[email protected]> added the comment:
Could just expand the docs to show examples of customizing behavior through
monkey-patching or subclassing:
class MyConfigParser(ConfigParser):
SECTRE = re.compile(r'[\*(?P<header>[^]]+)\s*]'
or:
RawConfigParser.SECTRE = re.compile(r'[\*(?P<header>[^]]+)\s*]'
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11027>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com