Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
It is not a bug. Tuple is a callable, but calling it raises a TypeError with the informative error message. It does not differ from e.g. >>> def foo(): ... raise TypeError("don't call foo()") ... >>> callable(foo) True >>> foo() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in foo TypeError: don't call foo() ---------- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40298> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com