Re: Hashtables in pyhton ...

2006-03-09 Thread Konrad Mühler
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

Re: Hashtables in pyhton ...

2006-03-09 Thread Xavier Morel
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

Re: Hashtables in pyhton ...

2006-03-09 Thread Ravi Teja
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

Re: Hashtables in pyhton ...

2006-03-09 Thread Larry Bates
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 -

Re: Hashtables in pyhton ...

2006-03-09 Thread Fredrik Lundh
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

Re: Hashtables in pyhton ...

2006-03-09 Thread Max M
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

Hashtables in pyhton ...

2006-03-09 Thread Konrad Mühler
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