Create evaluator for relation operators

This commit is contained in:
Bartłomiej Pluta
2019-07-12 21:26:06 +02:00
parent 99dd8bd46e
commit 95e6a5f95d
3 changed files with 52 additions and 1 deletions

View File

@@ -10,6 +10,9 @@ class Sound:
def play(self):
sd.play(self.data, self.fs, blocking=True)
def __eq__(self, other):
return self.file == other.file and self.data == other.data
def __str__(self):
return f"sound[{self.file}]"