Re: asking

2012-08-22 Thread mingqiang hu
I mean any of "a","b","c" in string "adfbdfc" makes the statement true,can I not use a function? suppose I got lots of substring let's say s1="a",s2="b",s3="c" ...,not wrap them as a tuple or a list , just make the statement as simple as possible to check if any of the value is the substring of S

Re: something about split()???

2012-08-21 Thread mingqiang hu
why filter is bad when use lambda ?actually I think I can use lambda like this: filter(lambda x:x==None,"|",split("|")) On Wed, Aug 15, 2012 at 1:33 PM, Ramchandra Apte wrote: > filter is bad when you use lambda with it > there are (good) cases for filter > > > On 14 August 2012 22:39, Jean-Miche