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 gregwillden
Recipients
Date 2006-10-12.21:19:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I'd like to propose the following change to
ConfigParser.py.
This change will enable multiline comments as follows:

[section]
item=value   ;first of multiline comment
            ;second of multiline comment

Right now the behaviour is

In [19]: cfg.get('section','item')
Out[19]: 'value\n;second of multiline comment'

It's a one-line change.
RawConfigParser._read lines 434-437
            # comment or blank line?
-            if line.strip() == '' or line[0] in '#;':
+            if line.strip() == '' or line.strip()[0]
in '#;':
                continue
History
Date User Action Args
2008-01-20 09:59:03adminlinkissue1576208 messages
2008-01-20 09:59:03admincreate