def find(self, pattern): """Find all items that match the given pattern (supporting wildcards). Returns a list of keys.""" return [k for k in self.keys() if wccmp(k, pattern)]
def inwclist(elem, seq): return any(wccmp(elem, x) for x in seq)