[Ilugc] What data structure in python should I use

  • From: sivakumar@xxxxxxxxxx (sivakumar)
  • Date: Fri Jan 15 11:45:01 2010

On Thu, 2010-01-14 at 23:58 -0500, Eknath Venkataramani wrote:

I don't understand the data structure part you are asking in the subject
because you already have a hash/dictonary. Did you intend to say you
want to change the data structure you already have ?

and I need to extract "confident" , "ashahvasahta" from the first
record, "consumers",  "upabhaokahtaa" from the second record...
i.e. "word in english" and the "first word in the probable-translations"

This format seems like stored using pickle in perl. One option is to
replace the '=>' with ':' you should be able to read it with python
using pickle. Also you can check if you can change the delemeter from
'=>' to ':' in pickle module.

Other related posts: