title: Lambda and multiple statements in Python
body: <p>Can anyone explaine that behavior of lambda functions?</p>
  
  <pre><code>import sys
  X = lambda: sys.stdout.write('first');sys.stdout.write("second")
  X()
  </code></pre>
  
  <p>Returns:
  -> secondfirst</p>
  
  <p>And one more problem:</p>
  
  <pre><code>lambda: sys.stdout.write("...");sys.exit(0) 
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>lambda: sys.exit(0);sys.stdout.write("...")
  </code></pre>
  
  <p>Doesn't execute correctly.
  And one more question, why in first primer execution flow goes from right to left?</p>
  
  <p>Trying with:
  Python3+(3.4, 3.2) 
  OS: Linux (Ubuntu), OSX</p>