def __init__(self, d):
        try:
            items = d.pop(self._items_name)
        except __HOLE__:
            raise NotImplemened("NetflixCollection subclasses must set _items_name")
        except KeyError:
            self.items = []
        else:
            if not isinstance(items, (list, tuple)):
                items = [items]
            self.items = [self.item_type(dd) for dd in items]
        super(NetflixCollection, self).__init__(d)
        for lab in 'number_of_results', 'results_per_page', 'start_index':
            setattr(self, lab, int(getattr(self, lab)))
dataset/ETHPy150Open ryszard/python-netflix/netflix/__init__.py/NetflixCollection.__init__