Message3299

Author leosoto
Recipients leosoto, pjenvey
Date 2008-06-22.06:33:14
SpamBayes Score 0.11273323
Marked as misclassified No
Message-id <1214116442.89.0.431174274779.issue1041@psf.upfronthosting.co.za>
In-reply-to
Content
As discussed on IRC I'm trying to change __findattr__ and __getattr__
roles, allowing *Derived classes to throw custom AttributeErrors without
a hack similar to what I did on #1038 (which does a double lookup when
it doesn't find anything).

I made the change on my hg repo
<https://hg.leosoto.com/jython.doj/rev/351f96f8e9cf>, and nothing seems
broken.

For consistency, I want to make a similar change for __finditem__ and
___getitem__ and then submit the patch here.

One thing I'm not sure about is the "__getattr__" name. As it is after
the change I made, it has the semantics of "__getattribute__". But then
we have "__setattr__", "__delattr__", etc, so I think it should keep the
"__getattr__" name, and a bit of documentation should avoid it be
misleading.
History
Date User Action Args
2008-06-22 06:34:02leosotosetspambayes_score: 0.112733 -> 0.11273323
messageid: <1214116442.89.0.431174274779.issue1041@psf.upfronthosting.co.za>
2008-06-22 06:34:02leosotosetspambayes_score: 0.112733 -> 0.112733
recipients: + leosoto, pjenvey
2008-06-22 06:34:01leosotolinkissue1041 messages
2008-06-22 06:33:20leosotocreate