This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jason.schwefel78
Recipients eric.smith, jason.schwefel78, rhettinger
Date 2020-10-22.18:51:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603392702.44.0.375820191755.issue42118@roundup.psfhosted.org>
In-reply-to
Content
>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.
History
Date User Action Args
2020-10-22 18:51:42jason.schwefel78setrecipients: + jason.schwefel78, rhettinger, eric.smith
2020-10-22 18:51:42jason.schwefel78setmessageid: <1603392702.44.0.375820191755.issue42118@roundup.psfhosted.org>
2020-10-22 18:51:42jason.schwefel78linkissue42118 messages
2020-10-22 18:51:42jason.schwefel78create