On Friday, July 6, 2018 at 9:40:16 AM UTC-7, Friedrich Wiemer wrote: > > So why is the _repr_() method from the matrix class called and not from > LinearLayerGeneric? > > It is not. The special python method is __repr__. In various places in sage, __repr__ delegates to _repr_, but that is a sage-local convention as far as I can tell. You can check that the __repr__ you're inheriting is sage.matrix.matrix0.Matrix.__repr__. It does not delegate to _repr_.
-- 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.