Lists, tuples and memory.

Peter Otten __peter__ at
Fri Jul 16 19:27:45 CEST 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.


More information about the Python-list mailing list