'Retrieve the series name or specific set based on key.
:param key: Either a serie name, or a tags_dict, or
a 2-tuple(serie_name, tags_dict).
If the serie name is None (or not given) then any serie
matching the eventual given tags will be given its points
one after the other.
To get the points of every serie in this resultset then
you have to provide None as key.
:return: A generator yielding `Point`s matching the given key.
NB:
The order in which the points are yielded is actually undefined but
it might change..'

def __getitem__(self, key):

    warnings.warn(u"ResultSet's    ``__getitem__``    method    will    be    deprecated.    Use``get_points``    instead.", DeprecationWarning)
    if isinstance(key, tuple):
        if (len(key) != 2):
            raise TypeError(u'only    2-tuples    allowed')
        name = key[0]
        tags = key[1]
        if ((not isinstance(tags, dict)) and (tags is not None)):
            raise TypeError(u'tags    should    be    a    dict')
    elif isinstance(key, dict):
        name = None
        tags = key
    else:
        name = key
        tags = None
    return self.get_points(name, tags)
