Repository navigation
Support for dict comprehension #6736
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,6 +202,16 @@ def op_BUILD_MAP(self, info, inst): | |
| info.append(inst, items=items[::-1], size=count, res=dct) | ||
| info.push(dct) | ||
|
|
||
| def op_MAP_ADD(self, info, inst): | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to check if this code was ever exercised, by using the patch: But it never stopped in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, for python<3.7. I can't wait to drop py3.6. |
||
| key = info.pop() | ||
| value = info.pop() | ||
| index = inst.arg | ||
| > | ||
| setitemvar = info.make_temp() | ||
| res = info.make_temp() | ||
| info.append(inst, key=key, value=value, | ||
| setitemvar=setitemvar, res=res) | ||
|
|
||
| def op_BUILD_SET(self, info, inst): | ||
| count = inst.arg | ||
| # Note: related python bug http://bugs.python.org/issue26020 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well spotted, colons are lined up in 7145e6c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent, ready to smoketest then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think so!