title: How to check if a MySQL connection is closed in Python?
body: <p>The question says everything. How can I check if my MySQL connection is closed in Python?</p>
  
  <p>I'm using MySQLdb, see <a href="http://mysql-python.sourceforge.net/" rel="noreferrer">http://mysql-python.sourceforge.net/</a></p>