[Python-Dev] Caching float(0.0)
nick at craig-wood.com
Mon Oct 2 09:54:35 CEST 2006
On Sun, Oct 01, 2006 at 02:01:51PM -0400, Jean-Paul Calderone wrote:
> Each line in an interactive session is compiled separately, like modules
> are compiled separately. With the current implementation, literals in a
> single compilation unit have a chance to be "cached" like this. Literals
> in different compilation units, even for the same value, don't.
That makes sense - thanks for the explanation!
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-Dev