[issue42118] TypeError gives wrong reserved name
Eric V. Smith
report at bugs.python.org
Thu Oct 22 11:44:53 EDT 2020
Eric V. Smith <eric at trueblade.com> added the comment:
You've rebound "int" to a string. I think the error message is correct.
Here's a simpler case:
>>> int = ''
>>> int
''
>>> int()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' object is not callable
What do you expect to gain with the "int = ''" statement?
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42118>
_______________________________________
More information about the Python-bugs-list
mailing list