Skip to content

Deprecate to_sage() and structure_sheaf() in Macaulay2 interface #27848

@mwageringel

Description

@mwageringel

For consistency with other interfaces, the method to_sage() for converting Macaulay2Elements to Sage should be deprecated and replaced by sage(). More precisely, the method _sage_() inherited from a super class should be implemented.

Similarly, the Sage method structure_sheaf() should be deprecated in favor of the Macaulay2 function sheaf() which provides the same functionality. Since structure_sheaf() is implemented for any Macaulay2Element, even for elements that do not support it, it unnecessarily pollutes the tab completion menu. In contrast, sheaf() only appears in the completion menu if an element supports it.

Component: interfaces

Keywords: macaulay2, deprecation

Author: Markus Wageringel

Branch/Commit: e0ead46

Reviewer: Frédéric Chapoton

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions