[Spambayes] Re: Corpus.Message.__getattr__ can't be correct can it?
Michael Hudson
mwh at python.net
Sat Jan 18 17:22:57 EST 2003
Skip Montanaro <skip at pobox.com> writes:
> >> The __getattr__ method is really only meant to initialize payload and
> >> hdrtxt.
>
> Michael> In which case why not use a property?
>
> Why? __getattr__ works fine, once it's properly written.
I was thinking of its performance-mangling properties. Dunno if
that's an issue here, it was only an off-the-cuff remark.
Cheers,
M.
--
ARTHUR: Why should he want to know where his towel is?
FORD: Everybody should know where his towel is.
ARTHUR: I think your head's come undone.
-- The Hitch-Hikers Guide to the Galaxy, Episode 7
More information about the Spambayes
mailing list