[Spambayes] Split DB and no update_probabilities

T. Alexander Popiel popiel@wolfskeep.com
Thu Nov 21 16:59:27 2002


In message:  <20021121100825.AFBD974B08@indus.ins.cwi.nl>
             Sjoerd Mullender <sjoerd@acm.org> writes:
>On Wed, Nov 20 2002 "T. Alexander Popiel" wrote:
>
>> I've got a patch to split the word database into two pieces:
>> one with the ham and spam counts, and one with the spamprobs.
>> At the same time, I got rid of the timestamps and killcounts,
>> both of which are rarely used (and can be added back in by
>> subclasses if they're really wanted).
>
>I have one suggestion: in _wipe_probinfo use
>	self.probinfo.clear()
>instead of
>	self.probinfo = {}
>That way it is easier to replace the implementation of self.probinfo
>by something other than a dictionary.

Thanks.  This is just a bit of my python ignorance showing
through.  The reason I had broken _wipe_probinfo out into its
own method was to allow easier replacement of self.probinfo
(I normally despise one-statement methods), but your suggestion
makes it even cleaner.

- Alex



More information about the Spambayes mailing list