➜

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.

作者 Frosburn
收信人 Frosburn
日期 2008-06-23.13:01:15
SpamBayes Score 0.0057908185
Marked as misclassified 否
Message-id <1214226078.67.0.621506907984.issue3178@psf.upfronthosting.co.za>
In-reply-to
内容
>>> 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.
历史
日期 用户 动作 参数
2008-06-23 13:01:20Frosburn修改spambayes_score: 0.00579082 -> 0.0057908185
recipients: + Frosburn
2008-06-23 13:01:19Frosburn修改spambayes_score: 0.00579082 -> 0.00579082
messageid: <1214226078.67.0.621506907984.issue3178@psf.upfronthosting.co.za>
2008-06-23 13:01:17Frosburn链接issue3178 messages
2008-06-23 13:01:16Frosburn创建