Opened 12 years ago

Closed 12 years ago

#10855 closed defect (fixed)

reset() doesn't quite forget()

Reported by: D.S. McNeil Owned by: Burcin Erocal
Priority: minor Milestone: sage-4.7
Component: symbolics Keywords:
Cc: Merged in: sage-4.7.alpha2
Authors: Douglas McNeil Reviewers: Burcin Erocal
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


sage: help(reset)
   Delete all user defined variables, reset all globals variables
    back to their default state, and reset all interfaces to other
    computer algebra systems.
sage: assumptions()
sage: x
sage: bool(x > 3)
sage: assume(x > 4)
sage: assumptions()
[x > 4]
sage: bool(x > 3)
sage: reset()
sage: assumptions()
[x > 4]
sage: # still assumed! but fortunately
sage: bool(x > 3)

Attachments (1)

trac_10855_ensure_that_reset_forgets.patch (1.4 KB) - added by D.S. McNeil 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by D.S. McNeil

Authors: Douglas McNeil

Changed 12 years ago by D.S. McNeil

comment:2 Changed 12 years ago by D.S. McNeil

Status: newneeds_review

comment:3 Changed 12 years ago by Burcin Erocal

Milestone: sage-4.7
Reviewers: Burcin Erocal
Status: needs_reviewpositive_review

Looks good to me.

comment:4 Changed 12 years ago by Karl-Dieter Crisman

Nice! Good catch.

comment:5 Changed 12 years ago by Jeroen Demeyer

Merged in: sage-4.7.alpha2
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.