[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):

    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?


More information about the Spambayes mailing list