[issue2961] Two error messages inconsistent

Chester report at bugs.python.org
Sun May 25 08:13:51 CEST 2008


Chester <wxpythoner at gmail.com> added the comment:

For the case  a + 1  I recommend:
TypeError: can't concatenate 'str' and 'int' objects

And for the case  1 + a  I recommend:
TypeError: can't concatenate 'int' and 'str' objects


Consistency matters!

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2961>
__________________________________


More information about the Python-bugs-list mailing list