[Python-Dev] Decimal data type issues (original) (raw)

Michael Hudson mwh at python.net
Tue Apr 13 13:54:44 EDT 2004


A comment from the peanut gallery...

"Batista, Facundo" <FBatista at uniFON.com.ar> writes:

Should the following be true?::

hash(Decimal(25) == hash(25) hash(Decimal.fromfloat(25.35) == hash(25.35) hash(Decimal('-33.8')) == hash(-33.8)

Well, if Decimal(25) == 25, they'd better hash the same! If not, then what's the point?

Cheers, mwh

-- I think perhaps we should have electoral collages and construct our representatives entirely of little bits of cloth and papier mache. -- Owen Dunn, ucam.chat, from his review of the year



More information about the Python-Dev mailing list