Re: Removing Duplicate entries in a file...

2006-01-10 Thread sri2097
Thanx Mike, My problem solved !! I loaded the entire file contnets into list and my job was a piece of cake after that. Srikar -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing Duplicate entries in a file...

2006-01-07 Thread sri2097
Hi there, I'm just curious to know as to how the changes you have suggested will solve the problem. Instead of appending (what I was doing), now we are opening and storing the files in 'binary' format. All the other entries in my file will be gone when I write into the file again. What I actuall n

Re: Removing Duplicate entries in a file...

2006-01-06 Thread Mike Meyer
"sri2097" <[EMAIL PROTECTED]> writes: > Hi all, I'm storing number of dictionary values into a file using the > 'cPickle' module and then am retrieving it. The following is the code > for it - > > # Code for storing the values in the file > import cPickle > > book = {raw_input("Name: "): [int(raw_

Re: Removing Duplicate entries in a file...

2006-01-06 Thread Fuzzyman
sri2097 wrote: > Hi all, I'm storing number of dictionary values into a file using the > 'cPickle' module and then am retrieving it. The following is the code > for it - > > # Code for storing the values in the file > import cPickle > > book = {raw_input("Name: "): [int(raw_input("Phone: ")), > r

Removing Duplicate entries in a file...

2006-01-06 Thread sri2097
Hi all, I'm storing number of dictionary values into a file using the 'cPickle' module and then am retrieving it. The following is the code for it - # Code for storing the values in the file import cPickle book = {raw_input("Name: "): [int(raw_input("Phone: ")), raw_input("Address: ")] } file_ob