On Wed, 2011-03-16 at 10:18 -0700, Alexandre Conrad wrote:
> Ok, I figured it out:
>
> __radd__ function is only called if the left operand does not support
> the corresponding operation and the operands are of different types.
> For instance, to evaluate the expression x - y, where y is an instan
Ok, I figured it out:
__radd__ function is only called if the left operand does not support
the corresponding operation and the operands are of different types.
For instance, to evaluate the expression x - y, where y is an instance
of a class that has an __radd__() method, y.__radd__(x) is called
Hi Chris,
I checked-in a bunch of coverage for webob.acceptparse yesterday while I was
on flying back to SFO after PyCon, thanks to DVCS. There's still a little
more to do, but I can't figure out is how to test an __radd__ special
method? Any ideas how I can do that? (without calling it directly).