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 <rep...@bugs.python.org> <http://bugs.python.org/issue28801> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com