Skip to content

held variables aren't restored #10073

@kcrisman

Description

@kcrisman

See #9879, where this was discovered. After #9901 is merged, this will be possible:

sage: I.log(hold=True).simplify()
1/2*I*pi
sage: var('I')
I
sage: I.log(hold=True).simplify()
log(I)
sage: restore('I')
sage: I.log(hold=True).simplify()
log(I)

It's totally unclear to me why this is happening. It even happens across different classes in doctesting. For now I'm putting this under symbolics, but it may be unrelated to that, and instead related to the miscellaneous commands.

Component: symbolics

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions