[Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 30 01:34:46 CEST 2006

Armin Rigo wrote:

> So if we provide a complete fix, [].__add__(x) will be modified to
> return NotImplemented instead of raising TypeError if x is not a list,
> and then [1,2,3]+array([4,5,6]) will fall back to array.__radd__() as
> before.

Ah, okay. That seems like it would work.


More information about the Python-Dev mailing list