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

Just van Rossum just at letterror.com
Fri Jan 17 20:54:57 EST 2003

Just van Rossum wrote:

[never mind what I wrote... self.load() obviously loads the right attrs]

That said, yeah, looking it up in self.__dict__ is better, but you must
then catch KeyError and raise AttributeError instead.


More information about the Spambayes mailing list