title: Python - Neaten this append/extend conditional
body: <p>I have a method which I will accept either a single object or a list of objects. I want to add whatever is passed to another list. Currently, my method looks like this:</p>
  
  <pre><code>def appendOrExtend(self, item):
    if type(item).__name__ == "list":
      self.list.extend(item)
    else:
      self.list.append(item)
  </code></pre>
  
  <p>It seems to me that there should be a more Pythonic way of achieving this, could you suggest one?</p>