jeff <[EMAIL PROTECTED]> wrote:
list
>[['a', [], []], ['b', [1, 2], []], ['c', [3, 4], [5, 6]]]
list.index(['b',[],[]])
>
>ie, would like to match the second element in the list with something
>where i just know 'b' is the first element, but have no idea what the
>other elements will be:
On Nov 10, 1:59 pm, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
> Mr.SpOOn <[EMAIL PROTECTED]> writes:
> > Hi,
> > is there any way to search elements in a list using wildcards?
>
> > I have a list of various elements and I need to search for elements
> > starting with 'no', extract them and put in
Thanks, I just have to choose which one to use :)
--
http://mail.python.org/mailman/listinfo/python-list
Mr.SpOOn <[EMAIL PROTECTED]> writes:
> Hi,
> is there any way to search elements in a list using wildcards?
>
> I have a list of various elements and I need to search for elements
> starting with 'no', extract them and put in a new list.
> I was thinking about something like:
>
> mylist.index('no*
On 10.11.2008, Mr.SpOOn <[EMAIL PROTECTED]> wroted:
> is there any way to search elements in a list using wildcards?
>
> I have a list of various elements and I need to search for elements
> starting with 'no', extract them and put in a new list.
> I was thinking about something like:
>
> mylist.i
Hi,
is there any way to search elements in a list using wildcards?
I have a list of various elements and I need to search for elements
starting with 'no', extract them and put in a new list.
I was thinking about something like:
mylist.index('no*')
Of course this doesn't work.
--
http://mail.pyth