Benjamin Peterson added the comment: Yes, the argument error messages for 2.x are all not very good. Note this issue was fixed once and for all in Python 3:
% python3 x.py Traceback (most recent call last): File "x.py", line 3, in <module> f("hello", keyword=True) TypeError: f() takes 0 positional arguments but 1 was given ---------- resolution: -> wont fix status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9943> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com