[docs] [issue15248] Better explain "TypeError: 'tuple' object is not callable"
Terry J. Reedy
report at bugs.python.org
Sun Aug 11 23:38:14 EDT 2019
Terry J. Reedy <tjreedy at udel.edu> added the comment:
IDLE's Shell has treated SyntaxWarnings as errors since 2001. I don't know if any other IDE's do the same. Raymond's example did not concern me, as I think not calling known non-callables is preferable.
But not executing literal-with-is code, such as "a = 1; a is 1" and "0 is ''" is wrong. See msg349431 of #34857 for more discussion of these cases.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue15248>
_______________________________________
More information about the docs
mailing list