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

implement or and ior operators #2979

Merged
merged 1 commit into from
Oct 30, 2024
Merged

implement or and ior operators #2979

merged 1 commit into from
Oct 30, 2024

Conversation

davidism
Copy link
Member

MultiDict and Headers implement | and |=. Similar to the dict implementation, | only works with other mappings, and |= works with mappings or iterators. UpdateDictMixin implements |= for updates. ImmutableDictMixin and ImmutableHeadersMixin disallow |=. EnvironHeaders disallows | as well to match its copy.

closes #2977

@davidism davidism added this to the 3.1.0 milestone Oct 30, 2024
@davidism davidism merged commit 1eb7ada into main Oct 30, 2024
11 checks passed
@davidism davidism deleted the dict-or branch October 30, 2024 02:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dict datastructures could include | and |= behavior
1 participant