[Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c (original) (raw)

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.

-- Greg



More information about the Python-Dev mailing list