title: Global variable used inside a instance method without "global"
body: <p>I thought global variables inside a Python function had to be declared <em>global</em>. So why does the following compile and run without error? </p>
  
  <pre><code>#!/usr/bin/env python
  text = "why is this seen?"
  class Foo:
      def doit(self):
          print(text)
  x = Foo()
  x.doit()
  </code></pre>
  
  <p>I'd appreciate a citation to the Python3 manual if possible.</p>