title: Python function handle ala Matlab
body: <p>In MATLAB it is possible to create <a href="http://www.mathworks.co.uk/help/techdoc/ref/function_handle.html" rel="noreferrer"><code>function handles</code></a> with something like</p>
  
  <pre><code>myfun=@(arglist)body
  </code></pre>
  
  <p>This way you can create functions on the go without having to create M-files.</p>
  
  <p>Is there an equivalent way in Python to declare functions and variables in one line and to call them later?</p>