multiple sequences to filter()
Gerald Stedile
gerald at proceryon.at
Thu Aug 24 06:43:02 EDT 2000
Hi Ben,
I think you need to be a little more specific on the output you expect.
Maybe the 'map()' function is what you really want (Some examples would
help).
Ben Wolfson wrote:
>
> I often find myself trying to do something like this:
>
> list1, list2 = filter(lambda x,y: x==y, list1, list2)
>
> Which, of course, does not work, even though it seems like a natural thing
> to do.
> What is the reason for its illegality?
--
| Gerald Stedile, Salzburg, Austria |
| [gerald at proceryon.at] |
More information about the Python-list
mailing list