Skip to content
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

Improve assignment regex to match more tuple unpacking syntax #5321

Merged
merged 3 commits into from Mar 10, 2014

Conversation

takluyver
Copy link
Member

Specifically, unpacking with a trailing comma (a, =) and Python 3 extended unpacking (a, *rest =).

Closes gh-5305

@ellisonbg
Copy link
Member

This looks fine. However, I am always wary to change things like this right before a release as there can be so many edge cases. I don't have any particular edge cases in mind, just general vague uneasiness. Do you think it would be possible to add more tests for the existing behaviors to give us a higher degree of confidence this isn't creating any regressions?

@takluyver
Copy link
Member Author

@ellisonbg , I've added some more tests. Do you think they give us enough confidence?

@ellisonbg
Copy link
Member

Yes, that is better. Thanks! Let's wait for Travis and then go ahead and merge-I will be at a meeting by the time Travis is done :(

takluyver added a commit that referenced this pull request Mar 10, 2014
Improve assignment regex to match more tuple unpacking syntax
@takluyver takluyver merged commit 9aa711b into ipython:master Mar 10, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Improve assignment regex to match more tuple unpacking syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tuple unpacking for shell escape
2 participants