[issue26469] Bug in ConfigParser when setting new values in extended interpolation

Michael Jacob report at bugs.python.org
Wed Mar 2 04:40:40 EST 2016


New submission from Michael Jacob:

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.

----------
components: Library (Lib)
messages: 261101
nosy: Michael Jacob
priority: normal
severity: normal
status: open
title: Bug in ConfigParser when setting new values in extended interpolation
type: crash
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26469>
_______________________________________


More information about the Python-bugs-list mailing list