utils.py 321 B

123456789101112131415161718
  1. from __future__ import unicode_literals
  2. from builtins import str
  3. def as_string(obj):
  4. return "" if not obj else str(obj)
  5. class CompleteSet(set):
  6. def union(self, other):
  7. return set(other)
  8. def intersection(self, other):
  9. return set(other)
  10. def __contains__(self, y):
  11. return True