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
shell access using ! will not fill class or function scope vars #1878
Comments
Looking at the code, it should work (see I guess we're getting the depth to look through the stack frame wrong. We look 2 frames above The good news is, it should be an easy fix. Would you like to have a go at it? |
I don't think this is as easy as that. |
...the
I'll experiment with a fix now. |
Should be fixed by PR #1879 |
this should probably be marked for a potential 0.12.2 |
I would give 0.12.2 very nearly 0% chance of existing. |
@juliantaylor, unfortunately my estimate for 0.12.2 is about 1/2 of @minrk's ;) |
ps - not to say that someone else couldn't do it, if it's necessary to keep the 12.04 LTS state in good health... But we simply won't be able to allocate any time to it. |
its still useful to mark bugs affecting spread versions even if you do not intend to fix them. e.g. how the bugs in debian works, they all have a version-found and version-fixed tag. |
On Fri, Jun 8, 2012 at 12:54 AM, Julian Taylor
Sure, no problem. |
Correct stack depth for variable expansion in !system commands Closes ipython#1878.
I added some time ago a backport-0.12.2 label, just in case. We can add it on the fly to PR/issues that should might be worth it. |
This commit is causing iptest to fail:
|
Interesting, I'm not seeing that failure. |
@takluyver the ubuntu daily build sees the failure too, see the ipython-testresults package: |
Oh, I've worked out why I'm not seeing it. The error's in a .txt Have I mentioned before that I hate doctests? ;-) Debugging something As an aside, shouldn't a test failure stop the build? IIRC, it needs a |
normally yes, but as the ipython testsuite fails since several weeks the build ignores it and instead just saves it for later consumption. |
See PR #1895 for this test failure I remember we talked before about setting up ShiningPanda to get the |
On Sun, Jun 10, 2012 at 7:52 AM, Thomas Kluyver
I hear you... We've been moving more and more away from them, they But now we can definitely move away from them more and more. Don't feel compelled to preserve existing doctests at all costs: if a |
I did a pull of the latest code.. output of the test.ipy:
is:
it seems that self.classvar is not being resolved. Running test.ipy like this:
also tried a git checkout 34f8b22 |
reopen? |
Looking into it. |
See PR #2302. |
Closes ipythongh-1878 (again)
Correct stack depth for variable expansion in !system commands Closes ipython#1878.
Closes ipythongh-1878 (again)
the ! to access the shell is not filling scoped variables.
I feel this should be rather high priority since this issue makes writing Ipython shell scripts a PITA..
IRC dump
The text was updated successfully, but these errors were encountered: