New submission from ppperry: >>>class x(type):pass >>> x(x) Traceback (most recent call last): File "<pyshell#335>", line 1, in <module> x(x) TypeError: type() takes 1 or 3 arguments
I am giving it one argument, and yet it's complaining that `type` expects one or three arguments. How unhelpful. ---------- components: Interpreter Core messages: 266643 nosy: ppperry priority: normal severity: normal status: open title: Unhelpful error message when one calls a subclass of type type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27157> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com