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)
Variation on the above if you need to be compatible with Python 2.4
xstr = lambda s: s is not None and s or ''