Unable to print content of list in python
<p>I've made a class containing a list, with the following  code:</p>

<pre><code>class ProdReg:
def __init__(self):
    self.__Pliste=[]
</code></pre>

<p>This works perfectly.
I've also added a method to print the contents of my list:</p>

<pre><code>def printProdReg(self):  
    for produkt in self.__Pliste:
        print(produkt)
</code></pre>

<p>This doesn't work all to great, When I try to add an object to this list, I get the following error:</p>

<pre><code>&lt;__main__.Bok object at 0x05777970&gt;
</code></pre>

<p>The object is a class called <code>Bok</code>.</p>

<p>No idea what so ever how I can resolve this.</p>
