On Thu, 21 Apr 2005 07:34:09 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= 
<[EMAIL PROTECTED]> wrote:

>James Stroud wrote:
>> astr = "Bob Carol Ted Alice"
>> letters = "adB"
>
>Apparently nobody has proposed this yet:
>
>>>> filter(letters.__contains__, astr)
>'Bad'
>>>> filter(set(letters).__contains__, astr)
>'Bad'
>
Baaad ;-)
But since I'm playing the other side of the table for
the moment, isn't filter to be deprecated?

Regards,
Bengt Richter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to