[Python-Dev] Re: the "3*x works w/o __rmul__" bug
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Oct 27 19:04:24 EST 2003
Alex Martelli <aleaxit at yahoo.com>:
> Nobody's asking for 3.0*x to work where x is a user-coded type
> without an __rmul__; rather, the point is that 3*x should fail too,
> and ideally they'd have the same clear error message as 3+x
> gives when the type has no __radd__.
Okay, that makes sense.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Python-Dev
mailing list