A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-April/134323.html below:

[Python-Dev] ConfigParser mangles keys with special chars

[Python-Dev] ConfigParser mangles keys with special chars [Python-Dev] ConfigParser mangles keys with special charsFred Drake fred at fdrake.net
Sat Apr 26 07:59:27 CEST 2014
On Sat, Apr 26, 2014 at 1:34 AM, Steven D'Aprano <steve at pearwood.info> 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.

Seriously?

Perhaps the second paragraph here could be strengthened a little:
https://docs.python.org/3/library/configparser.html#supported-ini-file-structure

But that seems clear to me.  Lines starting with the comment prefix
are comments.


  -Fred

-- 
Fred L. Drake, Jr.    <fred at fdrake.net>
"A storm broke loose in my mind."  --Albert Einstein
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4