[Spambayes] Strange ProxyUI problem?
Skip Montanaro
skip at pobox.com
Tue Jan 6 16:25:27 EST 2004
Brendon> So, I finally borrowed 10 minutes to learn python and dig into
Brendon> the problem:
QOTW if ever I saw one. ;-)
Brendon> In _buildReviewKeys in ProxyUI.py, the array returned by
Brendon> state.unknownCorpus.keys() is not sorted in any particular
Brendon> order. This leads to allKeys[-1] returning unpredictable
Brendon> starting dates instead of the latest date. It also violates
Brendon> the assumptions required to use bisect() on the keys. I solve
Brendon> my problem by adding an "allKeys.sort()" after getting the
Brendon> keys.
Brendon> I assume that the keys are expected to be in order?
Yeah, kind of looks like it. I would submit a bug report to SF and assign
it to Tony Meyer (anadelonbrin).
Skip
More information about the Spambayes
mailing list