Lists, tuples and memory.

Peter Otten __peter__ at web.de
Fri Jul 16 13:27:45 EDT 2004


Christopher T King wrote:

> Try using a set instead of a dictionary. You should get the good access
> time of dictionaries with nearly the low memory usage of a list:

sets.Set() holds its data in a dict. I fear the same goes for 2.4's builtin
set type which is coded in C but also built on top of dict.

Peter




More information about the Python-list mailing list