Lists implemented as integer-hashed Dictionaries?

er erobererunc at gmail.com
Fri Feb 6 22:18:37 EST 2009


Somebody much more intelligent than I said today that someone told him that
Python lists are just dictionaries with lists hashed by integers.  Since he
said that someone else told him this, I piped up and said that I thought
that wasn't true.  I looked at the source code for lists in python, and I
did not expressly remember seeing dictionaries.  Unfortunately I am not
somewhere where I can easily look at the code right now (I'm logged into
Windows!), and I might not realize exactly what I'm looking at anyways, but
I'd like to extend an apology to the guy soon if I was wrong.  So, can
anyone tell me if lists are really just dictionaries?  Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090206/a1fef879/attachment.html>


More information about the Python-list mailing list