[issue28801] configparser: before_get() method of class Interpolation has positional 'parser' parameter that is not used.
Wolfgang Maier
report at bugs.python.org
Fri Nov 25 08:21:33 EST 2016
Wolfgang Maier added the comment:
> Ah. Something like self._interpolation.before_get(self, section, option, value, d) could be better written as self._interpolation.before_get(parser=self, ...)
Yep, that's roughly what I was trying to explain.
> I still don't grock the apparent 'get()' signature mis-match however.
There is not much special here either. RawConfigParser inherits from MutableMapping, which in turn inherits from Mapping, which defines a get method, which RawConfigParser overwrites. The overwritten and the overwriting method *do* have different parameters, but I don't see why that matters.
In general, this does not look like a topic for the Python bug tracker (you are not reporting a bug, but you try to understand how correctly working code does its job), but rather for news:comp.lang.python or a PyCharm mailing list.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28801>
_______________________________________
More information about the Python-bugs-list
mailing list