code: def append(self, item):
          
          if isinstance(item, list):
              self.extend(item)
          elif issubclass(item.__class__, self._pyof_class):
              list.append(self, item)
          else:
              raise exceptions.WrongListItemType(item.__class__.__name__,
                                                 self._pyof_class.__name__)
docs: Append one item to the list.
  
          Args:
              item: Item to be appended. Its type must match the one defined in
                  the constructor.
  
          Raises:
              :exc:`~.exceptions.WrongListItemType`: If the item has a different
                  type than the one specified in the constructor.