Re: newbie:unique problem

2005-03-18 Thread Brian van den Broek
Heiko Wundram said unto the world upon 2005-03-18 01:27: On Thursday 17 March 2005 23:31, Brian van den Broek wrote: Am I not right in thinking that with the dict approach there is no guarantee that the order from the original list will be preserved? Yup, absolutely right that the original orderin

Re: newbie:unique problem

2005-03-17 Thread Heiko Wundram
On Thursday 17 March 2005 23:31, Brian van den Broek wrote: > Am I not > right in thinking that with the dict approach there is no guarantee > that the order from the original list will be preserved? Yup, absolutely right that the original ordering will not be preserved. But, I wonder whether thi

Re: newbie:unique problem

2005-03-17 Thread Brian van den Broek
Heiko Wundram said unto the world upon 2005-03-17 16:29: On Thursday 17 March 2005 20:08, Leeds, Mark wrote: But, I also want it to get rid of the AAA KP because there are two AAA's even though the last two letters are different. It doesn't matter to me which one is gotten rid of but I don't know h

Re: newbie:unique problem

2005-03-17 Thread Heiko Wundram
On Thursday 17 March 2005 20:08, Leeds, Mark wrote: > But, I also want it to get rid of the AAA KP because > there are two AAA's even though the last two letters > are different. It doesn't matter to me which one > is gotten rid of but I don't know how to change > the function to handle this ? I ha

Re: newbie:unique problem

2005-03-17 Thread Brian van den Broek
Leeds, Mark said unto the world upon 2005-03-17 14:08: I have a function uniqueList that is below : Def uniqueList(origList): nodups= {} for temp in origList: nodups[temp] = None returns nodups.keys() When used in the following context : industryList = uniqueList(jpb

newbie:unique problem

2005-03-17 Thread Leeds, Mark
I have a function uniqueList that is below :   Def uniqueList(origList):       nodups= {}     for temp in origList:    nodups[temp]  = None     returns nodups.keys()   When used in the following context :   industryList = uniqueList(jpbarradata[group])   where jpbarradata[g