pattern matching with multiple lists

2010-07-16 Thread Chad Kellerman
Greetings, I have some code that I wrote and know there is a better way to write it.  I wonder if anyone could point me in the right direction on making this 'cleaner'. I have two lists:   liveHostList = [ app11, app12, web11, web12, host11 ]     stageHos

Re: unique values of a Dictionary list (removing duplicate elements of a list)

2010-05-21 Thread Chad Kellerman
On Fri, May 21, 2010 at 8:07 AM, Chad Kellerman wrote: > > > On Fri, May 21, 2010 at 7:50 AM, Peter Otten <__pete...@web.de> wrote: > >> Chad Kellerman wrote: >> >> > Python users, >> > I am parsing an AIX trace file and creating a diction

Re: unique values of a Dictionary list (removing duplicate elements of a list)

2010-05-21 Thread Chad Kellerman
On Fri, May 21, 2010 at 7:50 AM, Peter Otten <__pete...@web.de> wrote: > Chad Kellerman wrote: > > > Python users, > > I am parsing an AIX trace file and creating a dictionary containing > > keys (PIDS) and values (a list of TIDS). With PIDS being unique proce

unique values of a Dictionary list (removing duplicate elements of a list)

2010-05-21 Thread Chad Kellerman
Python users, I am parsing an AIX trace file and creating a dictionary containing keys (PIDS) and values (a list of TIDS). With PIDS being unique process ids and TIDS, being a list of thread ids. My function populates the keys so that they are unique, but my list contains duplicates.