This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chester
Recipients chester
Date 2008-05-25.05:56:47
SpamBayes Score 0.00047583008
Marked as misclassified No
Message-id <1211695010.07.0.381155349233.issue2961@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

I would like to report that two error messages of the Python parser are
not consistent. Please take a look at this:


>>> a = "hello"

>>> a + 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: cannot concatenate 'str' and 'int' objects

>>> 1 + a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'int' and 'str'


When the order of the objects is changed, that should only change the
order of the 'str' and 'int' words in the message.

So if a+1, then
TypeError: cannot concatenate 'str' and 'int' objects

and if 1+a, then
TypeError: cannot concatenate 'int' and 'str' objects
History
Date User Action Args
2008-05-25 05:56:50chestersetspambayes_score: 0.00047583 -> 0.00047583008
recipients: + chester
2008-05-25 05:56:50chestersetspambayes_score: 0.00047583 -> 0.00047583
messageid: <1211695010.07.0.381155349233.issue2961@psf.upfronthosting.co.za>
2008-05-25 05:56:48chesterlinkissue2961 messages
2008-05-25 05:56:47chestercreate