Message366585
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() |
|
Date |
User |
Action |
Args |
2020-04-16 08:49:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, levkivskyi, Noah May |
2020-04-16 08:49:32 | serhiy.storchaka | set | messageid: <1587026972.9.0.149949531833.issue40298@roundup.psfhosted.org> |
2020-04-16 08:49:32 | serhiy.storchaka | link | issue40298 messages |
2020-04-16 08:49:32 | serhiy.storchaka | create | |
|