iis: comparsion of two lists
Matej Cepl
cepl.m at neu.edu
Fri Apr 26 19:28:03 EDT 2002
On Fri, Apr 26, 2002 at 10:49:24PM +0000, Matej Cepl wrote:
> erase = ()
> for msg in proc_old:
> if not(msg in loc_old):
> erase.append(msg)
Oh, boy,
I an answer myself. Sorry, for that. Am I correct, that mere
erase = ()
erase = filter (lambda m: return not(m in loc_old), proc_old)
would fly?
Thanks
Matej
--
Matej Cepl, cepl.m at neu.edu
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
I believe in the power of prayer. It's been said: "I would rather
stand against the cannons of the wicked than against the prayers
of the righteous." The prayers of a friend are one of life's most
gracious gifts.
-- George W. Bush at the 2001 National Prayer Breakfast
More information about the Python-list
mailing list