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

Merged
merged 0 commits into from Apr 14, 2011

Projects

None yet

2 participants

@takluyver
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
Member
fperez commented Apr 14, 2011

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
Member

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

@fperez
Member
fperez commented Apr 14, 2011

On Thu, Apr 14, 2011 at 3:26 PM, takluyver
reply@reply.github.com
wrote:

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

Looks good to me, merge away!

@takluyver takluyver merged commit 325cef6 into ipython:master Apr 14, 2011
@takluyver
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