Large Dictionaries

Vladimir 'Yu' Stepanov vys at renet.ru
Tue May 16 06:20:03 EDT 2006


Chris Foote wrote:
> lcaamano wrote:
>   
>> Sounds like PyTables could be useful.
>>
>> http://www.pytables.org
>>     
>
> In browsing their excellent documentation, it seems that all concepts 
> are built around storing and reading HDF5 format files.
>
> Not suitable for this project unfortunately.
>
> Cheers,
> Chris
>
>   
How many values accept long and int in pairs ? It is possible to try to use
the dictionary of dictionaries:

d = {}
for long_val, int_val in list_vals:
    d.setdefault(long_val, {})[int_val] = None





More information about the Python-list mailing list