Max M wrote:
> >>> a_hash_is_a_dict = {'key':'value'}
> >>> a_hash_is_a_dict['key2'] = 'value 2'
> >>> a_hash_is_a_dict['key']
> 'value'
Thank you very much.
This is I was looking for :-)
--
http://mail.python.org/mailman/listinfo/python-list
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 c
Hashtables (dictonaries) and ArrayLists(lists) are integral parts of
modern languages (for example: Python, Ruby, OCaml, D). They are
builtin data types unlike say, Java or C++, where they are added to the
library as an afterthought.
--
http://mail.python.org/mailman/listinfo/python-list
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
Take a look at a python dictionary. keys in dictionaries are hashed and
lookups are very efficient.
-Larry Bates
-
Konrad Mühler wrote:
> 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?
is this what you want?
http://docs.python.org/tut/node7.html#SECTION00750
--
http://mail.python.org/mailman/list
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?
>>> a_hash_is_a_dict = {'key':'value'}
>>> a_hash_is_a_dict['key2'] = 'value 2'
>>> a_hash_is_a_dict['key']
'value'
--
h
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
--
http://mail.python.org/mailman/listinfo/python-list