def _metric_name_wildcard_expansion(cache_tree, name_list):
    if len(name_list) == 0: # Catch an empty list being passed in.
        return []
    complete_list = list()
    names_head = name_list[0]
    names_rest = name_list[1:]
    matches = [ n for n in cache_tree.keys() if fnmatch.fnmatch(n, names_head) ]
    # print "matches are {0}".format(matches)
    for m in matches:
        # print "m is {0}".format(m)
        this_list = [m]
        expansion = _metric_name_wildcard_expansion(cache_tree[m], names_rest)
        # print "Expansion is {0}".format(expansion)
        for e in expansion:
            this_list.extend(expansion)
            # print "This_list is now {0}".format(this_list)
        complete_list.extend([this_list])
    # print "Returning complete_list of {0}".format(complete_list)
    return complete_list
Overriding an element
dataset/ETHPy150Open pcn/pyKairosDB/pyKairosDB/util.py/_metric_name_wildcard_expansion--crossover with--dataset/ETHPy150Open ioam/holoviews/tests/testoptions.py/TestStoreInheritance.test_style_inheritance_override