Re: Lists of lists and tuples, and finding things within them

2006-11-09 Thread attn . steven . kuo
Daniel Nogradi wrote: > > I have a program that keeps some of its data in a list of tuples. > > Sometimes, I want to be able to find that data out of the list. Here is > > the list in question: > > > > [('password01', 'unk'), ('host', 'dragonstone.org'), ('port', '1234'), > > ('character01', 'Thes

Re: Lists of lists and tuples, and finding things within them

2006-11-09 Thread Gabriel Genellina
At Thursday 9/11/2006 15:06, Daniel Nogradi wrote: > I have a program that keeps some of its data in a list of tuples. > Sometimes, I want to be able to find that data out of the list. Here is > the list in question: > > [('password01', 'unk'), ('host', 'dragonstone.org'), ('port', '1234'), > (

Re: Lists of lists and tuples, and finding things within them

2006-11-09 Thread [EMAIL PROTECTED]
Thanks Captain Obvious! Daniel Nogradi wrote: > > I have a program that keeps some of its data in a list of tuples. > > Sometimes, I want to be able to find that data out of the list. Here is > > the list in question: > > > > [('password01', 'unk'), ('host', 'dragonstone.org'), ('port', '1234')

Re: Lists of lists and tuples, and finding things within them

2006-11-09 Thread Daniel Nogradi
> I have a program that keeps some of its data in a list of tuples. > Sometimes, I want to be able to find that data out of the list. Here is > the list in question: > > [('password01', 'unk'), ('host', 'dragonstone.org'), ('port', '1234'), > ('character01', 'Thessalus')] > > For a regular list, I

Lists of lists and tuples, and finding things within them

2006-11-09 Thread Michael B. Trausch
I have a program that keeps some of its data in a list of tuples.  Sometimes, I want to be able to find that data out of the list.  Here is the list in question: [('password01', 'unk'), ('host', 'dragonstone.org'), ('port', '1234'), ('character01', 'Thessalus')] For a regular list, I could do