New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct stack depth for variable expansion in !system commands #1879
Conversation
%magic commands already get the right stack depth, it was only a problem for !system commands. I've added tests for both. |
Test results for commit 9e68e27 merged into master
Not available for testing: python2.6 |
Nice, thanks for doing this! BTW, I think we have similar problems with %run, in case you're in the stack-depth mindset ;) Merging this one now, good work. |
Correct stack depth for variable expansion in !system commands Closes #1878.
You're welcome. What's the problem with %run? I'm not sure I've come across that. |
In master:
In 0.10.2:
In master, we're showing an extra frame from our own code we shouldn't. I just haven't looked at the stack handling code, I'm sure the fix is just a similar frame offseta adjustment b/c we added the extra py3compat layer. |
Ah, tracebacks. I'll see what I can find. |
Awesome, thanks! |
Correct stack depth for variable expansion in !system commands Closes ipython#1878.
Closes issue #1878.