"Roberto Bonvallet" <[EMAIL PROTECTED]> wrote:
> You don't need map when using list comprehensions:
> 
>     ["" for i in [a, b, c] if i in ("None", None)]
> 

That loses list elements that aren't in the tests:

>>> a=7
>>> b="None"
>>> c=None
>>> ["" for i in [a,b,c] if i in ("None",None)]
['', '']
>>> 

max

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to