On Thursday, October 27, 2016 at 2:12:01 PM UTC-5, William wrote: > > On Thu, Oct 27, 2016 at 11:25 AM, kcrisman <kcri...@gmail.com > <javascript:>> wrote: > > > > > > On Thursday, October 27, 2016 at 2:11:58 PM UTC-4, John H Palmieri > wrote: > >> > >> (1) Why should a nonsquare matrix even have an "is_similar" method? Can > we > >> get rid of that? (Same for "determinant" and some other methods.) > > > > > > Those are not even the most annoying methods like this throughout Sage > that > > are not actually implemented but nonetheless appear in tab-completion, > > thanks for the reminder - not sure how to fix it without putting in a > bunch > > of super-classes that don't have them. > > We could change how tab completion works to have a hook/way to exclude > a list of methods. That's a simple backward compatible fix that does > not require any new classes, and can be iteratively applied with 0 > change in efficiency. > > The OOP way would be to have a mix-in class and subclasses for square matrices that implement these methods. This would mean setting the Element attribute in the initialization of the parent, but that's not so bad IMO. This would be my fix; it just takes a bit more work.
Best, Travis -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.