Thanks!  It works now.

On Tuesday, June 27, 2023 at 9:12:41 AM UTC-4 Dima Pasechnik wrote:

> this is now https://github.com/sagemath/sage/issues/35844
>
> On Tue, Jun 27, 2023 at 1:40 PM Dima Pasechnik <dim...@gmail.com> wrote:
> >
> > On Tue, Jun 27, 2023 at 12:54 PM Luis Finotti <luis.f...@gmail.com> 
> wrote:
> > >
> > > 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'
> > probably a typo in deprecation message. You can ask Sage:
> >
> > sage: import_statements("MPolynomial")
> > from sage.rings.polynomial.multi_polynomial import 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...@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
> .
>

-- 
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/7dc77867-acac-4a2a-bc41-fbee41757b83n%40googlegroups.com.

Reply via email to