[Spambayes] Corpus.Message.__getattr__ can't be correct can it?

Skip Montanaro skip at pobox.com
Fri Jan 17 11:35:34 EST 2003


In Corpus.Message, __getattr__ is defined as

    def __getattr__(self, attributeName):
        '''On-demand loading of the message text.'''

        if attributeName in ('hdrtxt', 'payload'):
            self.load()
        return getattr(self, attributeName)

This has to be an infloop, right?

Skip



More information about the Spambayes mailing list