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

Support PyDict_Merge on PyDict #2910

Closed
samuelcolvin opened this issue Jan 25, 2023 · 1 comment · Fixed by #2912
Closed

Support PyDict_Merge on PyDict #2910

samuelcolvin opened this issue Jan 25, 2023 · 1 comment · Fixed by #2912

Comments

@samuelcolvin
Copy link
Contributor

samuelcolvin commented Jan 25, 2023

Would be great to have support for PyDict_Merge on PyDict, e.g. via a fn merge(other: &PyDict, override: bool) method.

@samuelcolvin
Copy link
Contributor Author

Then worth adding in a docs that .merge(other, true) is akin to a.update(b) in python, we could either add .update() as either an alias to .merge() or using PyDict_Update directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant