old_contents: import compiler.ast
  
  class B(compiler.ast.Const):
      inherited2 = 1
      def x(self):
          self.inherited1 = 1
  
  class A(B):
      def __init__(self):
          self.x = 1                      # define x on A
          self.w.q = 1
  
      def f(s, self):                     # unusual self
          print self
          s.self = 1
          s = 7
  
      def x():                            # no self, redefine x on object
          pass
  
      def y(self):
          self.a, self.b = (1, 2)         # define a, b
  
      def z(self):
          print self.z                    # method
          print self.x                    # assigned
          print self.a                    # unpacked
          print self.w                    # unknown
          print self.inherited1           # known from B
          print self.inherited2           # known from B
          print self.value                # from compiler.ast.Const
          print self.goofy                # defined in class scope
  
      goofy = x
      
  
new_contents: import compiler.ast
  
  class B(compiler.ast.Const):
      inherited2 = 1
      def x(self):
          self.inherited1 = 1
  
  class A(B):
      def __init__(self):
          self.x = 1                      # define x on A
          self.w.q = 1
  
      def f(s, self):                     # unusual self
          print self
          s.self = 1
          s = 7
  
      def x():                            # no self, redefine x on object
          pass
  
      def y(self):
          self.a, self.b = (1, 2)         # define a, b
  
      def _z(self):
          print self._z                   # method
          print self.x                    # assigned
          print self.a                    # unpacked
          print self.w                    # unknown
          print self.inherited1           # known from B
          print self.inherited2           # known from B
          print self.value                # from compiler.ast.Const
          print self.goofy                # defined in class scope
  
      goofy = x
      
  
subject: add simple test for methods starting with _