Skip to content
Snippets Groups Projects
Commit 41554017 authored by Vriezen, E.C. (Emma)'s avatar Vriezen, E.C. (Emma)
Browse files

Fixed the Sentence class. It is now a real list. Before, it stored both a list...

Fixed the Sentence class. It is now a real list. Before, it stored both a list class and just a list... It was double at least. Now it is fixed and it still works.
parent 44b9307f
No related branches found
No related tags found
1 merge request!44Emmas edits to master
...@@ -200,14 +200,4 @@ class SourceWord(Word): ...@@ -200,14 +200,4 @@ class SourceWord(Word):
class Sentence(list): class Sentence(list):
def __init__(self, words): def __init__(self, words):
list.__init__(self, words) super().__init__(words)
self.words = words # I am not sure if this is the 'proper' fix
def __str__(self):
return " ".join([str(w) for w in self.words])
def __len__(self):
return len(self.words)
def __iter__(self):
return iter(self.words)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment