On Mon, Apr 28, 2025 at 1:20 PM Nils Bruin <nbr...@sfu.ca> wrote:

> I ran into the following worrisome example. In
> sage.rings.finite_rings.element_base we have that is_FiniteFieldElement(x)
> has a deprecation on it:
>
>    deprecation(32664, "the function is_FiniteFieldElement is deprecated;
> use isinstance(x, sage.structure.element.FieldElement) and
> x.parent().is_finite() instead")
>

this is from https://github.com/sagemath/sage/pull/35119

a part of a push towards namespace packages to certainly ill-conceived
modularization project.

Dima






>
> Yet:
>
> sage: isinstance(GF(2).0, sage.structure.element.FieldElement)
> False
>
> how is it possible that something got deprecated in favour of something
> that doesn't even work in the most basic example?
>
> We do have that parent(GF(2).0).is_field() is true and that it inherits
> from sage.rings.ring.Field, so on the parent side things seem to be OK.
>
>
> --
> 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 view this discussion visit
> https://groups.google.com/d/msgid/sage-devel/62332ced-2bdd-4ab4-9b80-934835a9697dn%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/62332ced-2bdd-4ab4-9b80-934835a9697dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq3bqxfP%3DO-hJCXv7dORAJ-8Z6COTTDe%2BFesnV-wU6n_Sw%40mail.gmail.com.

Reply via email to