def finduids(self, x):
    """Like re.findall but returns ints instead of strings."""
    matches = (int(m.group("uid")) for m in self.constructor.regex.finditer(x))
    filtered_matches = filter(self._in_range, matches)
    return list(filtered_matches)
Like re.findall but returns ints instead of strings.
language/fruit/rendering_utils.py