[Python-Dev] Caching float(0.0)

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Sep 30 02:57:55 CEST 2006

Nick Craig-Wood wrote:

> Is there any reason why float() shouldn't cache the value of 0.0 since
> it is by far and away the most common value?

1.0 might be another candidate for cacheing.

Although the fact that nobody has complained about this
before suggests that it might not be a frequent enough
problem to be worth the effort.


More information about the Python-Dev mailing list