Comment Comment by drakeandrews That example would surely be better as: something = myfunc(d['x']) if 'x' in d else None parent drakeandrews 12 years ago