This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Noah May, gvanrossum, levkivskyi, serhiy.storchaka
Date 2020-04-16.08:49:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587026972.9.0.149949531833.issue40298@roundup.psfhosted.org>
In-reply-to
Content
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()
History
Date User Action Args
2020-04-16 08:49:32serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, levkivskyi, Noah May
2020-04-16 08:49:32serhiy.storchakasetmessageid: <1587026972.9.0.149949531833.issue40298@roundup.psfhosted.org>
2020-04-16 08:49:32serhiy.storchakalinkissue40298 messages
2020-04-16 08:49:32serhiy.storchakacreate