FixedPoint
Brian Quinlan
brian at sweetapp.com
Thu Feb 7 22:48:35 EST 2002
Tim Peters wrote:
> Magnitude (as opposed to identity -- "is") comparision of a FixedPoint
to
> a non-numeric object makes no sense that I'm comfortable imposing, so
I'm
> happy to let it raise an exception.
You shouldn't be. There is no more reason for FixedPoint to raise an
exception (aside from your desire not to bother fixing it :-) than for
other other "incompatible" types e.g.
>>> 5 == 5 + 5j
0
>>> 5 == '5'
0
Cheers,
Brian
More information about the Python-list
mailing list