On 2013-01-05, Simon King <simon.k...@uni-jena.de> wrote: > Hi Dima, > > On 2013-01-05, Dima Pasechnik <dimp...@gmail.com> wrote: >> On 2013-01-05, Simon King <simon.k...@uni-jena.de> wrote: >>> sage: a.abs # but that's good: >>> NotImplemented >> >> this is still a hack, as R() might in principle not have anything to do >> with abs(). In such a case NotImplemented is misleading, and it better >> be that hasattr(a, 'abs')==False > > Sure, but how could that be done, without finally switching from Python > to Lisp ;) Couldn't we have a special class of rings with abs() ? > > Best regards, > Simon >
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en.