New submission from Richard Prosser: >From https://hg.python.org/cpython/file/3.5/Lib/configparser.py (for example):
358class Interpolation: 359 """Dummy interpolation that passes the value through with no changes.""" 360 361 def before_get(self, parser, section, option, value, defaults): 362 return value but a typical invocation misses out the 'parser' parameter: 796 return self._interpolation.before_get(self, section, option, value, 797 d) As far as I can see, this is not a keyword-only parameter, yet PyCharm seems to treat it as one. So maybe this is some new behaviour that I don't understand yet but there seems to be a fault here, IMO. I am using Python 3.5.2 on Windows 7, after using the 'futurize' tool on some legacy 2.7 code that extended self._interpolate (which no longer exists in 3+). ---------- hgrepos: 362 messages: 281697 nosy: rprosser priority: normal severity: normal status: open title: configparser: before_get() method of class Interpolation has positional 'parser' parameter that is not used. type: compile error versions: Python 3.5 _______________________________________ 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