title: Best way to check function arguments?
body: <p>I'm looking for an efficient way to check variables of a Python function. For example, I'd like to check arguments type and value. Is there a module for this? Or should I use something like decorators, or any specific idiom?</p>
  
  <pre><code>def my_function(a, b, c):
      """An example function I'd like to check the arguments of."""
      # check that a is an int
      # check that 0 &lt; b &lt; 10
      # check that c is not an empty string
  </code></pre>