title: How to declare a global variable from within a class?
body: <p>I'm trying to declare a global variable from within a class like so:</p>
  
  <pre><code>class myclass:
      global myvar = 'something'
  </code></pre>
  
  <p>I need it to be accessed outside the class, but I don't want to have to declare it outside the class file. My question is, is this possible? If so, what is the syntax?</p>