Exemplo n.º 1
0
 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 []
Exemplo n.º 2
0
 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 []
Exemplo n.º 3
0
 def __init__(self, *iv_list):
     self.iv_map = TFL.sorted(iv_list)
Exemplo n.º 4
0
 def __init__ (self, * iv_list) :
     self.iv_map = TFL.sorted (iv_list)