Hi Michael, On 2019-07-13, Michael Jung <micj...@uni-potsdam.de> wrote: > You could try something like > try: > is_field = R.is_field() > except TypeError: > is_field = (R in Rings()) > as a compromise? Would that make the code faster?
I think today the preferred way to test if something is a ring or integral domain or field is via categories ("R in Fields()"). Best regards, Simon -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/qgcifp%24vmg%241%40blaine.gmane.org. For more options, visit https://groups.google.com/d/optout.