def matching_keys(self, abbr): """Returns a list of all keys matching `abbr` if any.""" if abbr in self: return [abbr] elif isinstance(abbr, str): return TFL.matches(TFL.sorted(pyk.iterkeys(self)), abbr) return []
def matching_keys (self, abbr) : """Returns a list of all keys matching `abbr` if any.""" if abbr in self : return [abbr] elif isinstance (abbr, str) : return TFL.matches (TFL.sorted (pyk.iterkeys (self)), abbr) return []
def __init__(self, *iv_list): self.iv_map = TFL.sorted(iv_list)
def __init__ (self, * iv_list) : self.iv_map = TFL.sorted (iv_list)