

def __init__(self, name, date=None, fetch=True, all=False):
    'Constructs a new ChartData instance.\n\n        By default, this constructor will download the requested data from\n        Billboard.com by calling fetchEntries().\n\n        Args:\n            name: The chart name, e.g. \'hot-100\' or \'pop-songs\'.\n                You can browse the Charts section of Billboard.com to find\n                valid chart names; the URL of a chart will look like\n                "http://www.billboard.com/charts/CHART-NAME".\n            date: The chart date as a string, in YYYY-MM-DD format.\n                If this argument is omitted, the latest chart will be fetched.\n                Again, the best way to find valid dates is by browsing the\n                Billboard website. An example of a valid date is \'2015-11-28\',\n                which gets the chart viewable at\n                http://www.billboard.com/charts/hot-100/2015-11-28.\n                If this argument is invalid, no exception will be raised;\n                instead, the chart will contain no entries.\n            fetch: A boolean indicating whether to fetch the chart data from\n                Billboard.com immediately (at instantiation time).\n                If False, the chart data can be populated at a later time\n                using the fetchEntries() method.\n            all: Deprecated; has no effect.\n        '
    self.name = name
    self.previousDate = None
    if date:
        self.date = date
        all.latest = False
    else:
        self.date = None
        self.latest = True
    self.entries = []
    if fetch:
        self.fetchEntries(all=all)

dataset/ETHPy150Open guoguo12/billboard-charts/billboard.py ChartData.__init__/VarMisuse@49/514 `self`->`all`