New submission from Florent Xicluna <florent.xicl...@gmail.com>: This is probably a bug.
>>> class A: ... def f(self, __a=42): ... pass ... >>> A().f() >>> class A: ... def f(self, *, __a=42): ... pass ... >>> A().f() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: f() needs keyword-only argument _A__a ---------- components: Interpreter Core messages: 158568 nosy: flox priority: normal severity: normal status: open title: method with special keyword-only argument gives error type: behavior versions: Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14607> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com