[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
More information about the Python-Dev mailing list
Thu Mar 30 01:34:46 CEST 2006
- Previous message: [Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c
- Next message: [Python-Dev] improving quality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c
- Next message: [Python-Dev] improving quality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list