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:
Traceback
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 a new list.
Thanks, I just have to choose which one to use :)
--
http://mail.python.org/mailman/listinfo/python-list
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.
--
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:
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*')
Of