[Python-checkins] python/nondist/sandbox/spambayes mboxcount.py,1.1,1.2

Barry A. Warsaw barry@wooz.org
Mon, 26 Aug 2002 15:10:55 -0400


>>>>> "TP" == Tim Peters <tim.one@comcast.net> writes:

    TP> Note that I pasted this _factory function from split.py, so if
    TP> this _factory was in trouble so is that one.  Ditto splitn.py.
    TP> GBayes.py's _factory returns an empty string, and since we
    TP> don't know why None caused a problem, perhaps *any* false
    TP> value does too.

It's because of the __iter__() definition in the mailbox.py base
class, which raises StopIterator on None return.  I'll change both
these other modules to return the empty string.

-Barry