Hello, I am getting warnings that is_MPolynomial is deprecated. The error suggests to use
isinstance(x, sage.structure.element.MPolynomial) But this gives an error: AttributeError: module 'sage.structure.element' has no attribute 'MPolynomial' Looking at the referred github report (https://github.com/sagemath/sage/issues/32709) it is suggested to use isinstance(x, MPolynomial), which also fails with NameError: name 'MPolynomial' is not defined So, what is the proper way now? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/f1d6b09d-818b-4a1f-a5b1-9641befa5ce2n%40googlegroups.com.