title: Get a Global Variable while a Python Program is running
body: <p>I write a Python 2.5 Command Line program on <code>CentOS 5.5</code> and it has been running for 1 day and is still running. Now I want to end this program but get the value of a global variable.</p>
  
  <p>I have done some Google. It seems the only way to get the value of a global variable is to attach the Python program to a <code>GDB</code>.</p>
  
  <p>Suppose the global variable is a List, and its name is <code>resultlist</code>. How can I get its value?</p>