Public » Letterpress
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

tip remove unused, and easily abused, __contains__

Changeset 7ea9163cab83

Parent aee143254881

by Benjamin Pollack

Changes to one file · Browse files at 7ea9163cab83 Showing diff from parent aee143254881 Diff from another changeset...

Change 1 of 1 Show Entire File solver.py Stacked
 
29
30
31
32
33
34
35
36
37
38
39
40
 
29
30
31
 
 
 
 
 
 
32
33
34
@@ -29,12 +29,6 @@
  def subtrie(self, c):   return self._letters[c]   - def __contains__(self, s): - if not s: - return self.is_terminal() - else: - return s[0] in self._letters and s[1:] in self._letters[s[0]] -    def word_weight(word, favor):   score = 0