Пример #1
0
 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)]
Пример #2
0
 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)]
Пример #3
0
def inwclist(elem, seq):
    return any(wccmp(elem, x) for x in seq)
Пример #4
0
def inwclist(elem, seq):
    return any(wccmp(elem, x) for x in seq)