title: How to apply __str__ function when printing a list of objects in Python
body: <p>Well this interactive python console snippet will tell everything:</p>
  
  <pre><code>&gt;&gt;&gt; class Test:
  ...     def __str__(self):
  ...         return 'asd'
  ...
  &gt;&gt;&gt; t = Test()
  &gt;&gt;&gt; print(t)
  asd
  &gt;&gt;&gt; l = [Test(), Test(), Test()]
  &gt;&gt;&gt; print(l)
  [__main__.Test instance at 0x00CBC1E8, __main__.Test instance at 0x00CBC260,
   __main__.Test instance at 0x00CBC238]
  </code></pre>
  
  <p>Basically I would like to get three <code>asd</code> string printed when I print the list. I have also tried <code>pprint</code> but it gives the same results.</p>