En Tue, 06 Mar 2007 17:07:45 -0300, Matthias Julius <[EMAIL PROTECTED]> escribió:
> "Gabriel Genellina" <[EMAIL PROTECTED]> writes: > >> Dictionary access is highly optimized in Python. In fact, using a >> precomputed dictionary is about 12 times faster: > > Why using a dictionary and not a list? Because a dictionary is slower? :) Using a similar test as previously posted, list access is about 15% faster than dictionary access for such small range. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list