title: python sys.exit not working in try
body: <pre><code>Python 2.7.5 (default, Feb 26 2014, 13:43:17)
  [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; try:
  ...  sys.exit()
  ... except:
  ...  print "in except"
  ...
  in except
  &gt;&gt;&gt; try:
  ...  sys.exit(0)
  ... except:
  ...  print "in except"
  ...
  in except
  &gt;&gt;&gt; try:
  ...  sys.exit(1)
  ... except:
  ...  print "in except"
  ...
  in except
  </code></pre>
  
  <p>Why am not able to trigger sys.exit() in try, any suggestions...!!!</p>
  
  <p>The code posted here has all the version details.</p>
  
  <p>I have tried all possible ways i know to trigger it, but i failed.
  It gets to 'except' block.</p>
  
  <p>Thanks in advance..</p>