title: Loop function parameters for sanity check
body: <p>I have a Python function in which I am doing some sanitisation of the input parameters:</p>
  
  <pre><code>def func(param1, param2, param3):
      param1 = param1 or ''
      param2 = param2 or ''
      param3 = param3 or ''
  </code></pre>
  
  <p>This caters for the arguments being passed as <em>None</em> rather than empty strings. Is there an easier/more concise way to loop round the function parameters to apply such an expression to all of them. My actual function has nine parameters.</p>