[Spambayes] Hammiefilter doesn't write out the pickle

Tim Stone - Four Stones Expressions tim@fourstonesExpressions.com
Mon Nov 18 16:03:04 2002


It's not you... you have to manually save it for the moment.

fp = open(<dbname string>, 'wb')
pickle.dump(<bayes instance>, fp, 1)
fp.close()

We're beginning to work on making hammie* use Bayes.PersistentBayes to take 
care of this kind of stuff for you, but we're not there yet.

- TimS

11/18/2002 9:57:40 AM, "Moore, Paul" <Paul.Moore@atosorigin.com> wrote:

>Um, is it just me, or does hammiefilter not save the database if
>you're using a pickle?
>
>A patch is attached. It doesn't feel "clean" (it would be nice if
>PersistentBayes covered both pickles and DB files, as well as any
>other cases which may appear) but it'll do for now. Maybe I'll look at
>the wider issue when I have some time...
>
>Paul.
>
>
>_______________________________________________
>Spambayes mailing list
>Spambayes@python.org
>http://mail.python.org/mailman/listinfo/spambayes
>
- Tim
www.fourstonesExpressions.com 






More information about the Spambayes mailing list