[issue7005] ConfigParser does not handle options without values

Dwayne Bailey report at bugs.python.org
Thu Aug 26 13:29:06 CEST 2010

Dwayne Bailey <dwayne+pythonbugs at translate.org.za> added the comment:

This is causing a regression in our code.

Previously when we write out our INI file for an entry that has a value of None we saw the following:
value = None

These are now stored as:

This is now causing a traceback in our code.

But interestingly I haven't changed anything in our initialisation of ConfigParser, I would have assumed that I need to set allow_no_value for this to work in the new way that MySQL expects.

I would have expected everything to work as it currently does in 2.6 unless I specifically request

You can see the traceback of Virtaal under Python 2. in this bug:

nosy: +dwayne

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list