[issue2961] Two error messages inconsistent

Georg Brandl report at bugs.python.org
Sun May 25 10:03:25 CEST 2008


Georg Brandl <georg at python.org> added the comment:

I don't see a problem here. You may be mislead by the assumption that
the error messages are generated by the parser, which they aren't --
they are generated at runtime by the objects you try to add.

The two types report their failure to do the operation differently --
strings are usually concatenated, so the first one makes sense for
strings, but ints have no such notion.

----------
nosy: +georg.brandl
resolution:  -> rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list