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

Add assignment expressions #134

Merged
merged 1 commit into from
Apr 6, 2019

Conversation

Kodiologist
Copy link
Contributor

@Kodiologist Kodiologist commented Mar 24, 2019

This is a quick-'n'-dirty attempt at #126. (Closes #126.)

@Kodiologist
Copy link
Contributor Author

Okay, I've rebased this one, too.

Copy link
Owner

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with a quick-and-dirty solution. However, it would be great if we could add more tests. We could borrow from the PEP and its implementation. We could even borrow the ones that we can't cover yet with the initial implementation and mark them as expectedFailure.

Also, please add a release note to docs/changelog.rst.

Thank you!

@Kodiologist
Copy link
Contributor Author

I've added more tests from the PEP. I've also used assertAstRoundtrips in place of assertSrcRoundtrips so the tests are neutral to whether astor produces extra parentheses.

@berkerpeksag berkerpeksag merged commit d9e893e into berkerpeksag:master Apr 6, 2019
@berkerpeksag
Copy link
Owner

Thank you!

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.

None yet

2 participants