Jason Schwefel added the comment:
>What do you expect to gain with the "int = ''" statement?
I did not expect anything. I made a mistake in my initial code and the error
message indicated that I rebound 'str'. I could not find where I had used 'str'
as a variable name. If it would have said 'int', as that was the function that
I rebound as a variable name, I would have immediately known what to look for.
I understand that it is mostly cosmetic, but I am sure I am not the first
person that went down the wrong path because of this.
I understand that I was using the variable named 'int' as a string and
therefore referencing it as 'str' object is technically correct. However, I am
still relatively new to Python, as many others are, and the the error message
could be a bit more clear.
--
___
Python tracker
<https://bugs.python.org/issue42118>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com