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 Frosburn
Recipients Frosburn
Date 2008-06-23.13:01:15
SpamBayes Score 0.0057908185
Marked as misclassified No
Message-id <1214226078.67.0.621506907984.issue3178@psf.upfronthosting.co.za>
In-reply-to
Content
>>> class test: 
... 	def __radd__(self,other):
... 		return '__radd__ called'
... 
>>> t = test()
>>> 1 + t
'__radd__ called'
>>> t + t
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'test' and 'test'


This applies to all of the reflected operations.
History
Date User Action Args
2008-06-23 13:01:20Frosburnsetspambayes_score: 0.00579082 -> 0.0057908185
recipients: + Frosburn
2008-06-23 13:01:19Frosburnsetspambayes_score: 0.00579082 -> 0.00579082
messageid: <1214226078.67.0.621506907984.issue3178@psf.upfronthosting.co.za>
2008-06-23 13:01:17Frosburnlinkissue3178 messages
2008-06-23 13:01:16Frosburncreate