title: What does ''except Exception as e'' mean in python?
body: <p>The typical structure for exception handling is below:</p>
  
  <pre><code>try:
      pass
  except Exception, e:
      raise
  else:
      pass
  finally:
      pass
  </code></pre>
  
  <p>May I know what does <code>except Exception, e:</code>or<code>except Exception as e:</code> mean?
  Typically I will use <code>print (e)</code> to print the error message but I am wondering what the program has done to generate the e.</p>
  
  <p>If I were to construct it in another way (below), how would it be like?</p>
  
  <pre><code>except Exception:
      e = Exception.something
  </code></pre>
  
  <p>What should the method be to replace the <code>something</code>?</p>
  
  <p>When the body of code under <code>try</code> gives no exception, the program will execute the code under <code>else</code>. But, what does <code>finally</code> do here?</p>