title: Values not visible when printing list of objects
body: <p>Totally rewritten code:</p>
  
  <pre><code>HOR = [0, 1, 3, 6]
  VER = [0,10,20,100,1000]
  
  class Pos:
      def __init__(self, x, y):
          if (x in HOR) and (y in VER):
              self.x = x
              self.y = y
          else:
              print "Invalid position: ", x, y
  
      def __str__(self):
          return self.x + self.y
  
      def get_x(self):
          return self.x
  
      def get_y(self):
          return self.y
  
  class list_A1:
      def __init__(self):  # create a A1 object     
          self.list_A1 = []
          for i in HOR:
              for j in VER:
                  self.list_A1.append(Pos(i,j))
  
      def __str__(self):
          d = "list_A1 contains: " + repr(self)
          return d  # return a string representing the A1
  
  a1 = list_A1()
  print a1
  </code></pre>
  
  <p>Now I get:</p>
  
  <pre><code>list_A1 contains: &lt;__main__.list_A1 object&gt;
  </code></pre>
  
  <p>but I want to get list of <code>[x,y]</code>, for example:</p>
  
  <pre><code>[[1,1],[1,2]...]
  </code></pre>
  
  <p>I am new to object programming and I don't understand why I can't see these values in the list.</p>