Skip to content

Loading…

Shell's reset method clears namespace from last %run command. #382

Merged
merged 0 commits into from

2 participants

@takluyver
IPython member

This restores the ability of %reset to clear references to objects created in a %run-ed script. See bug #141 (not actually closed by this, but it gets us back to where we were when the bug was reported).

@fperez
IPython member

Looks great to me, and the behavior is as expected at least as far as successive interactive runs of tclass are concerned. Tests pass too, so merge away. Thanks!

@takluyver
IPython member

Added a little tweak to test_tclass so that it would fail if all references were kept until %reset.

@fperez
IPython member
@takluyver takluyver merged commit 325cef6 into ipython:master
@takluyver
IPython member

Rebased and merged to avoid merge handle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 0 additions and 0 deletions.
Something went wrong with that request. Please try again.