-
- def __eq__(self, other):
- if type(other) is not type(self):
- return False
-
- return _StreamBase.__eq__(self, other)
-
- def _copy(self):
- return self.stream_class(self.name, self.id)
-
- def __copy__(self):
- return self._copy()
-
- def __deepcopy__(self, memo):
- cpy = self._copy()
- memo[id(self)] = cpy
- return cpy