Comparing float and decimal
greg
greg at cosc.canterbury.ac.nz
Fri Oct 3 02:49:47 EDT 2008
Mark Dickinson wrote:
> Option (2) appeals to me, but I can't see how to
> implement it.
It could be implemented for the special case of floats
and Decimals by keeping flags in each set indicating
whether any elements of those types have been added.
But doing this just for those two types would be
rather hackish, and wouldn't do anything for any
other incomparable types that might come along.
--
Greg
More information about the Python-list
mailing list