among.py 404 B

12345678910111213
  1. class Among(object):
  2. def __init__(self, s, substring_i, result, method=None):
  3. """
  4. @ivar s search string
  5. @ivar substring index to longest matching substring
  6. @ivar result of the lookup
  7. @ivar method method to use if substring matches
  8. """
  9. self.s = s
  10. self.substring_i = substring_i
  11. self.result = result
  12. self.method = method