On Sat, Apr 26, 2014 at 1:34 AM, Steven D'Aprano firstname.lastname@example.org wrote:
I think that a line beginning with "#spam" is ambiguous, it isn't clear if it is intended as a comment "spam" or a key starting with #, so by the Zen, configparser should refuse to guess.
Perhaps the second paragraph here could be strengthened a little: https://docs.python.org/3/library/configparser.html#supported-ini-file-struc...
But that seems clear to me. Lines starting with the comment prefix are comments.
-- Fred L. Drake, Jr. <fred at fdrake.net> "A storm broke loose in my mind." --Albert Einstein