Skip to content

deprecate is_RealNumber, is_AlgebraicNumber, is_RealIntervalFieldElement, ... #24525

@videlec

Description

@videlec

We deprecate is_RealNumber, is_ComplexNumber, is_AlgebraicNumber, is_RealIntervalFieldElement, ...

git grep 'is_.*Number(' and git grep -E 'is_(Real|Complex).*Element[(]' only shows a small number of uses.

We replace all uses either by

  • isinstance tests with the element class (if the module providing it is imported already) or
  • isinstance tests of the parent with an abc defined in sage.rings.abc

See also:

Depends on #32566

CC: @tscrim

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/24525

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions