Message127211
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. |
|
Date |
User |
Action |
Args |
2011-01-27 18:55:40 | rhettinger | set | recipients:
+ rhettinger, r.david.murray, lukasz.langa, Kunjesh.Kaushik |
2011-01-27 18:55:40 | rhettinger | set | messageid: <1296154540.24.0.317961505364.issue11027@psf.upfronthosting.co.za> |
2011-01-27 18:55:39 | rhettinger | link | issue11027 messages |
2011-01-27 18:55:39 | rhettinger | create | |
|