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
[stdlib] Support reversed for Dict #2340
Conversation
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Feel free to rebase now that abf2975 just landed for reversing the keys. Sorry I didn't see this PR before merging the smaller one. |
@JoeLoser Done! |
I just notice Joe is on PTO, @ConnorGray ready for review! |
@jayzhan211 do you mind rebasing and fixing up the merge conflicts? After that, happy to take a look. Thank you! |
@JoeLoser Sure! |
@JoeLoser Friendly ping, this PR is ready for review, thanks! |
Thanks for the friendly ping. I appreciate you rebasing — I just imported this PR! |
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.
Looks great! Do you mind adding a changelog entry, please? I'm going to start suggesting external contributors can write their own changelog entries where it makes sense if you don't mind. You're the first one I'm asking as we make this change 😄
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@jayzhan211 do you mind rebasing to fix the conflicts from today's nightly and then I'm happy to land this? Thank you! |
@JoeLoser Done! |
✅🟣 This contribution has been merged 🟣✅ Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours. We use Copybara to merge external contributions, click here to learn more. |
@JoeLoser Do you know why the change is not appeared in nightly? https://github.com/modularml/mojo/blob/nightly/stdlib/src/builtin/reversed.mojo |
This is my fault, I'm sorry. Before we had this piece of automation up for auto commenting upon merging internally, I made a mistake here. This one has not landed internally and so isn't reflected on the nightly branch here. I've reopened this pull request and removed the incorrect labels I added. I'll take a look on Monday for shepherding this PR through internally so it can land. I'm sorry about the troubles here - it's completely my fault. Thank you for calling it out! |
@jayzhan211 okay I actually merged it internally this time just now 🎉 |
Part of #2325
Follow up PR on #2327
I done the
values
anditems
of reversed dict, since #2327 is not yet merged, so this PR also includes #2327.If this PR looks good, we can merge this, otherwise #2327 can be merged beforehand