Opened 10 years ago

Closed 10 years ago

#10855 closed defect (fixed)

reset() doesn't quite forget()

Reported by: dsm Owned by: burcin
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:

Description

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
x
sage: bool(x > 3)
False
sage: assume(x > 4)
sage: assumptions()
[x > 4]
sage: bool(x > 3)
True
sage: reset()
sage: assumptions()
[x > 4]
sage: # still assumed! but fortunately
sage: bool(x > 3)
False

Attachments (1)

trac_10855_ensure_that_reset_forgets.patch (1.4 KB) - added by dsm 10 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 years ago by dsm

  • Authors set to Douglas McNeil

comment:2 Changed 10 years ago by dsm

  • Status changed from new to needs_review

comment:3 Changed 10 years ago by burcin

  • Milestone set to sage-4.7
  • Reviewers set to Burcin Erocal
  • Status changed from needs_review to positive_review

Looks good to me.

comment:4 Changed 10 years ago by kcrisman

Nice! Good catch.

comment:5 Changed 10 years ago by jdemeyer

  • Merged in set to sage-4.7.alpha2
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.