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 Michael Jacob
Recipients Michael Jacob
Date 2016-03-02.09:40:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456911640.56.0.456152786125.issue26469@psf.upfronthosting.co.za>
In-reply-to
Content
There seems to be a bug in configparser when setting new values in extended interpolation:

python --version
Python 3.5.1

from configparser import ConfigParser, ExtendedInterpolation
c=ConfigParser(interpolation=ExtendedInterpolation)
c.add_section('test')
c.set('test', 'key', 'value')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/configparser.py", line 1190, in set
    super().set(section, option, value)
  File "/usr/lib/python3.5/configparser.py", line 891, in set
    value)
TypeError: before_set() missing 1 required positional argument: 'value'

It works ithout extended interpolation, though.
History
Date User Action Args
2016-03-02 09:40:40Michael Jacobsetrecipients: + Michael Jacob
2016-03-02 09:40:40Michael Jacobsetmessageid: <1456911640.56.0.456152786125.issue26469@psf.upfronthosting.co.za>
2016-03-02 09:40:40Michael Jacoblinkissue26469 messages
2016-03-02 09:40:40Michael Jacobcreate