title: Python constants declaration
body: <p>if I declare a const class which are contains variables:</p>
  
  <p>for example</p>
  
  <pre><code>class const:
      MASTER_CLIENT_CONNECTED = 0
      CLIENT_CONNECTED = 1        
      GET_SERVER_QUEUE = 9998    
      ERROR = 9999
  </code></pre>
  
  <p>is there any way to reach this variable(constants) without creating a new class.</p>
  
  <p>like this:</p>
  
  <pre><code>import const
  const.MASTER_CLIENT_CONNECTED 
  </code></pre>
  
  <p>or</p>
  
  <pre><code>import const
  if(i==MASTER_CLIENT_CONNECTED):
  </code></pre>