[Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c
greg.ewing at canterbury.ac.nz
Wed Mar 29 04:51:13 CEST 2006
Armin Rigo wrote:
> >>> .__add__(5)
> TypeError: can only concatenate list (not "int") to list
Would that be much of a loss? It doesn't really
give you much more information than something like
Unsupported operand types for '+': list, int
and what it does give is based on the assumption
that concatenation is what the user has in mind.
He might just as easily have been thinking of
addition, or something else entirely.
More information about the Python-Dev