Hi Joal,
On 26 Jan., 09:14, ancienthart <[email protected]> wrote:
> I'm relying on the fact that __getattr__ is only called if the attribute is
> missing from the matrix class. I was of the opinion that this would
> completely avoid raising an AttributeError in the first place.
Exactly. And as far as I know, a lot of code relies on getting
AttributeErrors. This is a quite typical sequence of lines of code:
try:
bla = self.bla
except AttributeError:
<do something else to get bla>
If your patch is now deleting all attribute errors from matrices, then
all hell might break loose.
Cheers,
Simon
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org