[Python-Dev] Python's C interface for types
Nick Maclaren
nmm1 at cus.cam.ac.uk
Fri Jan 26 22:25:04 CET 2007
Giovanni Bajo <rasky at develer.com> wrote:
>
> I personally consider *very* important that hash(5.0) == hash(5) (and
> that 5.0 == 5, of course).
It gets a bit problematic with floating-point, when you can have
different values "exactly 5.0" and "approximately 5.0". IEEE 754
has signed zeroes. And so it goes.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nmm1 at cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
More information about the Python-Dev
mailing list