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
Tuple unpacking for shell escape #5305
Milestone
Comments
PR #5321 addresses this. |
That was quick! |
The actual fix was easy enough, since I'm already familiar with that code - just a regex that was a bit too restrictive. |
There are also cases I didn't mention like |
It should do. That PR has been merged now, so feel free to pull from master and try it out. |
mattvonrocketstein
pushed a commit
to mattvonrocketstein/ipython
that referenced
this issue
Nov 3, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assigning the output of a !shell_escape command to a variable results in a list of strings. Even when the output is a single line, the result will be a list with one element. Tuple unpacking on this list is inconsistent with the tuple unpacking syntax in python, only a subset of cases are working. In the examples below, the first case works correctly but the 2nd case (one-element unpack) and the 3rd (splat unpacking) are syntax errors.
My system info:
The text was updated successfully, but these errors were encountered: