title: Python append: It only return the last value repeatedly
body: <p>This is a part of my code. </p>
  
  <pre><code>dbList = []
  for obj in xmlData.iter("object")
      task = TaskViewModel()
      task.id = obj.("pk")
      task.name = obj.find("field[@name='name']").text
      task.parent_task_id = obj.find("field[@name='parent_task_id']").text
      dbList.append(task)
  </code></pre>
  
  <p>My problem is it only gives me results that repeat.</p>
  
  <p>my expected result is:</p>
  
  <pre><code>dbList = ["dale","Michelle","Fred","Debbie"]
  </code></pre>
  
  <p>but it gives me this result:</p>
  
  <pre><code>dbList = ["Debbie","Debbie","Debbie","Debbie"]
  </code></pre>
  
  <p>I think I should clear something.</p>
  
  <p>Hi this is the example file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;django-objects version="1.0"&gt;
  &lt;object model="task.task" pk="31"&gt;
  &lt;field name="name" type="CharField"&gt;Dale&lt;/field&gt;
  &lt;field name="parent_task_id" type="IntegerField"&gt;0&lt;/field&gt;
  &lt;/object&gt;
  &lt;object model="task.task" pk="32"&gt;
  &lt;field name="name" type="CharField"&gt;Michelle&lt;/field&gt;
  &lt;field name="parent_task_id" type="IntegerField"&gt;0&lt;/field&gt;
  &lt;/object&gt;
  &lt;object model="task.task" pk="33"&gt;
  &lt;field name="name" type="CharField"&gt;Fred&lt;/field&gt;
  &lt;field name="parent_task_id" type="IntegerField"&gt;31&lt;/field&gt;
  &lt;/object&gt;
  &lt;object model="task.task" pk="34"&gt;
  &lt;field name="name" type="CharField"&gt;Debbie&lt;/field&gt;
  &lt;field name="parent_task_id" type="IntegerField"&gt;31&lt;/field&gt;
  &lt;/object&gt;
  &lt;/django-objects&gt;"
  </code></pre>
  
  <p>I have this class</p>
  
  <pre><code>class TaskViewModel():
  
       def __init__(self):
          self.id = 0
          self.name = ""
          self.parent_task_id = ""
  </code></pre>
  
  <p>so that's why i did this:</p>
  
  <pre><code>for obj in xmlData.iter("object")
      task = TaskViewModel()
      task.id = obj.("pk")
      task.name = obj.find("field[@name='name']").text
      task.parent_task_id = obj.find("field[@name='parent_task_id']").text
      dbList.append(task)
  </code></pre>