Re: Link Dictionary

2007-06-11 Thread anush shetty
> > Working from your original dict1: > > dout = [[dict2[i], [dict2[k] for k in setvalue]] > for i,setvalue in dict1.iteritems()] > > - Paddy I dont think this works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Link Dictionary

2007-06-11 Thread James Stroud
anush shetty wrote: > On Jun 12, 2:10 am, James Stroud <[EMAIL PROTECTED]> wrote: > >>anush shetty wrote: >> >>>Hi, >>>I have two dictionaries >> >>> dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', >>>'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7', >>>'B1']), 'B

Re: Link Dictionary

2007-06-11 Thread Paddy
> > dout = [[dict2[i],[dict2[k] for k in j]] > for i,j in data] > print dout > > - Paddy. Working from your original dict1: dout = [[dict2[i], [dict2[k] for k in setvalue]] for i,setvalue in dict1.iteritems()] - Paddy -- http://mail.python.org/mailman/listinfo/python-list

Re: Link Dictionary

2007-06-11 Thread Paddy
On Jun 11, 10:19 pm, anush shetty <[EMAIL PROTECTED]> wrote: > On Jun 12, 2:10 am, James Stroud <[EMAIL PROTECTED]> wrote: > > > > > anush shetty wrote: > > > Hi, > > > I have two dictionaries > > > > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', > > > 'B5', 'B6', 'C8', 'E8', '

Re: Link Dictionary

2007-06-11 Thread anush shetty
On Jun 12, 1:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 11 Jun 2007 17:24:26 -0300, anush shetty > <[EMAIL PROTECTED]> escribió: > > > > > Hi, > > I have two dictionaries > > > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', > > 'B5', 'B6', 'C8', 'E8', 'D8',

Re: Link Dictionary

2007-06-11 Thread anush shetty
On Jun 12, 2:10 am, James Stroud <[EMAIL PROTECTED]> wrote: > anush shetty wrote: > > Hi, > > I have two dictionaries > > > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', > > 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7', > > 'B1']), 'B9': set(['I9', 'H9', 'A7

Re: Link Dictionary

2007-06-11 Thread James Stroud
anush shetty wrote: > Hi, > I have two dictionaries > > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', > 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7', > 'B1']), 'B9': set(['I9', 'H9', 'A7', 'F9', 'B3', 'B6', 'G9', 'B4', > 'B5', 'C9', 'B7', 'E9', 'B1', 'B2',

Re: Link Dictionary

2007-06-11 Thread Gabriel Genellina
En Mon, 11 Jun 2007 17:24:26 -0300, anush shetty <[EMAIL PROTECTED]> escribió: > Hi, > I have two dictionaries > > dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', > 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7', > 'B1']), 'B9': set(['I9', 'H9', 'A7', 'F9', '

Link Dictionary

2007-06-11 Thread anush shetty
Hi, I have two dictionaries dict1={'B8': set(['I8', 'H8', 'B2', 'B7', 'F8', 'C9', 'G8', 'B4', 'B5', 'B6', 'C8', 'E8', 'D8', 'B3', 'A9', 'A8', 'C7', 'B9', 'A7', 'B1']), 'B9': set(['I9', 'H9', 'A7', 'F9', 'B3', 'B6', 'G9', 'B4', 'B5', 'C9', 'B7', 'E9', 'B1', 'B2', 'D9', 'A9', 'A8', 'C8', 'B8', 'C7'