Eric V. Smith <e...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42118> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com