A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/044232.html below:

[Python-Dev] Re: Decimal data type issues

[Python-Dev] Re: Decimal data type issues [Python-Dev] Re: Decimal data type issuesBatista, Facundo FBatista at uniFON.com.ar
Tue Apr 13 17:23:29 EDT 2004
[Bob Ippolito]

#- Make hash(Decimal('123.1')) == hash(Decimal('123.1')) .. there is no 

I'm pretty sure that those two hash will return the same value, as long have
the same argument (?).


#- hash(float(1.0)) == hash(Decimal(1)) comes for free, because 
#- hash(float(1.0)) == hash(1).  For the few other non-integer numbers 
#- that can be accurately represented as floating point, it might make 
#- sense to keep the same property?  Though I suppose that is pretty 
#- what-the-heck-does-C-do specific, so I wouldn't blame anyone if this 
#- property couldn't be maintained.

OK, so I won't promise it.

.	Facundo

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4