New submission from Jason Schwefel <[email protected]>:
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 test on 3.8 and 3.9
----------
components: Interpreter Core
messages: 379300
nosy: jason.schwefel78
priority: normal
severity: normal
status: open
title: TypeError gives wrong reserved name
type: behavior
versions: Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42118>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com