Message379320
>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. |
|
Date |
User |
Action |
Args |
2020-10-22 18:51:42 | jason.schwefel78 | set | recipients:
+ jason.schwefel78, rhettinger, eric.smith |
2020-10-22 18:51:42 | jason.schwefel78 | set | messageid: <1603392702.44.0.375820191755.issue42118@roundup.psfhosted.org> |
2020-10-22 18:51:42 | jason.schwefel78 | link | issue42118 messages |
2020-10-22 18:51:42 | jason.schwefel78 | create | |
|