On Thursday, September 24, 2015 at 3:02:05 PM UTC+2, vdelecroix wrote: > > def is_zero(self): > return not self >
This is the same as return not bool(self) which calls self.__nonzero__(). this works > > sage: matrix([x==3]) > [x == 3] > > Should it? > That seems no longer relevant (I just checked, nonzero is not called). But this is even worse: sage: (x==3).is_zero() True So this ticket could easily disallow it. > I do not like hold since it is already used as a keyword everywhere in symbolics Maxima has "is(relation)". How about this? -- 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.