diff --git a/iterators.html b/iterators.html index e1903e0..7fb466a 100755 --- a/iterators.html +++ b/iterators.html @@ -252,8 +252,8 @@ rules = LazyRules() rules_filename = 'plural6-rules.txt' def __iter__(self): ① - self.pattern_file = open(self.rules_filename) ③ - self.cache = [] ② + self.pattern_file = open(self.rules_filename) ② + self.cache = [] ③ self.cache_index = 0
__iter__() method is only going to be called once, after you instantiate the class, assign it to rules, and call iter(rules) to create the iterator.