Hashtables in pyhton ...

Xavier Morel xavier.morel at masklinn.net
Thu Mar 9 13:17:54 EST 2006


Konrad Mühler wrote:
> Hi,
> 
> are there predefinded chances to use hashtables in python? How can I use 
> Hashtable in python? Or do I have to implement this on my own?
> 
> Thanks
A Java Hashtable/Hashmap is equivalent to a Python dictionary, which is 
a builtin objects (and not a second-class citizen in some distant, dark, 
cold library full of Evil Things ©). You can access it either via the 
regular constructor `dict()` or via the syntaxical shorcut

{ key1: val1, key2: val2, key3: val3}



More information about the Python-list mailing list