Confusion about dictionaries - keys use value or identity?

Thomas Wouters thomas at xs4all.net
Mon Jul 9 11:48:58 EDT 2001


On Mon, Jul 09, 2001 at 10:53:32AM -0400, Roy Smith wrote:
> Tim Peters <tim.one at home.com> wrote:
> > The good news is that this part isn't true:  all versions of Python have
> > always maintained an internal compiled-regexp cache, mapping regexp strings
> > to their compiled forms, much like the one you sketched building "by hand"
> > later.  Current Python maintains a cache of 100 pairs.

> Wow, that's awesome.  You might want to update the library reference
> to mention this.  It would keep people like me from running off on
> pointless efficiency-hack tangents :-)

I doubt it. I'm sure they'll find some other pointless efficiency-hack to
tangent after :-)

History-will-teach-us-nothing-ly y'rs,

-- 
Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!




More information about the Python-list mailing list