title: How to get function arguments names literals in Python
body: <p>How to get the names, <em>string literals</em>, of arguments passed to a function, within the function environment?</p>
  
  <p>Pseudo-code:</p>
  
  <pre><code>def myfunc(model, arg_is_list, num):
      # define magical_command that gets args NAMES
      print 'Your passed args are:', magical_command_return
      # use arg_is_list, use model...
  </code></pre>
  
  <p>Ideal solution:</p>
  
  <pre><code>$mylist={}
  $mylist=[1,2,3]
  $linear = some_library_model
  $myfunc(model='linear', arg_is_list='mylist', num=2)
  &gt;Your passed args are: 'linear', 'mylist', '2'  
  </code></pre>
  
  <p>Any help I can get would be much appreciated. Thanks.</p>