New submission from Jason Schwefel :
The following code gives a "TypeError: 'str' object is not callable" exception:
int = ''
s = '3500:day'
a = s.split(':')
i = int(a[0])
Proper exception message should be "TypeError: 'int' object is not callable"
Only able to
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 wo