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 rhettinger
Recipients Kunjesh.Kaushik, lukasz.langa, r.david.murray, rhettinger
Date 2011-01-27.18:55:38
SpamBayes Score 4.738645e-09
Marked as misclassified No
Message-id <1296154540.24.0.317961505364.issue11027@psf.upfronthosting.co.za>
In-reply-to
Content
There's a case to be made that the current regex is buggy.  It already accepts whitespace around the header name but doesn't strip it.  ISTM, this is undesirable:  [ section header ]  --> ' section header ' instead of 'section header'.

>>> import configparser
>>> r = configparser.ConfigParser.SECTCRE
>>> r.match('[ section header ]').group('header')
' section header '

That result is not want people would usually want or expect.  I don't see any advantage to deferring this to 3.3.
History
Date User Action Args
2011-01-27 18:55:40rhettingersetrecipients: + rhettinger, r.david.murray, lukasz.langa, Kunjesh.Kaushik
2011-01-27 18:55:40rhettingersetmessageid: <1296154540.24.0.317961505364.issue11027@psf.upfronthosting.co.za>
2011-01-27 18:55:39rhettingerlinkissue11027 messages
2011-01-27 18:55:39rhettingercreate