Is 100,000 entries big for a dictionary?

Aahz Maruch aahz at
Sun Dec 31 21:36:32 CET 2000

In article <0p936.2528$Qb7.277261 at>,
Fredrik Lundh <fredrik at> wrote:
>The implementation limit is currently one billion objects.

It occurs to me, in light of the earlier thread on "is", that the limit
is likely to hit even faster than that, depending on how id() is
implemented.  That is, a non-artificial program that tries creating a
billion entries in a hash table is going to have enough other objects
that the id() space will fill up.

Incidentally, I think you were insufficiently pedantic in that thread
when you suggested "id(a) == id(b)".  It really should be

import __builtin__
if ==


                      --- Aahz (Copyright 2000 by aahz at

Androgynous poly kinky vanilla queer het    <*>
Hugs and backrubs -- I break Rule 6

Ninth Virtual Anniversary: Today!

More information about the Python-list mailing list