How to check arguments of the function?
<p>I have function defined this way:</p>

<pre><code>def f1 (a, b, c = None, d = None):
    .....
</code></pre>

<p>How do I check that <code>a</code>, <code>b</code> are not equal to some value. E.g. I want to check they are not empty strings like, <code>""</code> or <code>" "</code></p>

<p>Thinking about something like.</p>

<pre><code>arguments = locals()
for item in arguments:
    check_attribute(item, arguments[item])
</code></pre>

<p>And then check if arguments are not <code>""</code>, <code>" "</code>. But in this case it will also try to check <code>None</code> values (what I don't want to do).</p>
