Unexpected result in Python class initialization
<p>I wrote following code:</p>

<pre><code>class node:
    def __init__(self, title, series, parent):
        self.series = series
        self.title = title
        self.checklist = []
        if(parent != None):
            self.checklist = parent.checklist
        self.checklist.append(self)
</code></pre>

<p>When I create objects like this:</p>

<pre><code>a = node("", s, None)
b = node("", s, a)
print a.checklist
</code></pre>

<p>Unexpectedly, it shows both a and b objects as an output of print statement.
I am new to python. So, possibly there's some stupid mistake. </p>

<p>Thank you.</p>
