Skip to content

Meta-ticket: Remove runtime dependency on everything via sage_eval #33802

@mkoeppe

Description

@mkoeppe

sage_eval evaluates a string using the globals of sage.all.

It is used in some constructors and other functions - but in most uses, likely just a few bindings, namely those emitted by the preparser, are needed. We create a module sage.repl.preparse_bindings for these bindings (Ellipsis, ellipsis_range, ellipsis_iter, Integer, RealNumber, ComplexNumber, var, symbolic_expression, ...)

It is also used by sage_input to verify inputs. We run the verification with a smaller module first before falling back to sage.all

Tickets:

See also:

CC: @kwankyu @kliem @jhpalmieri @spaghettisalat @jcamp0x2a

Component: refactoring

Branch/Commit: u/mkoeppe/remove_runtime_dependency_on_everything_via_sage_eval @ 3552523

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions