def __init__(self, d):
        title = d.pop('title')
        self.title = title['regular']
        self.title_short = title['short']
        categories = d.pop('category')
        self.categories = [NetflixCategory(**di) for di in get_me_a_list_dammit(categories)]

        for label in 'estimated_arrival_date', 'shipped_date':
            try:
                setattr(self, label, datetime.fromtimestamp(float(d.pop(label))))
            except __HOLE__:
                pass
        try:
            self.average_rating = float(d.pop('average_rating'))
        except KeyError:
            pass

        super(CatalogTitle, self).__init__(d)
dataset/ETHPy150Open ryszard/python-netflix/netflix/__init__.py/CatalogTitle.__init__