What is the most idiomatic way to do the following?
def xstr(s): if s is None: return \'\' else: return s s = xstr(a) + xstr(b)
Functional way (one-liner)
xstr = lambda s: '' if s is None else s