[Spambayes] read-only DBDict in hammie?
Skip Montanaro
skip@pobox.com
Thu Nov 14 16:49:28 2002
I'd like to share the anydbm file between several accounts on my machine.
Before I fiddle hammie.py so it opens the file in read-only mode, is there
any reason when classifying (not training) it actually needs to update the
file? There's a __del__ method in PersistentBayes which does this:
def __del__(self):
#super.__del__(self)
self.save_state()
def save_state(self):
self.wordinfo[self.statekey] = (self.nham, self.nspam)
When classifying there's no reason that nham or nspam would change, right?
Skip
More information about the Spambayes
mailing list