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

Improve set matching #714

Closed
evhub opened this issue Jan 1, 2023 · 1 comment
Closed

Improve set matching #714

evhub opened this issue Jan 1, 2023 · 1 comment

Comments

@evhub
Copy link
Owner

evhub commented Jan 1, 2023

Should match dictionary mapping semantics, such that

{1, 2, 3} = some_set

matches if {1, 2, 3} <= some_set, rather than {1, 2, 3} == some_set, with explicit syntax in the form of

{1, 2, 3, *()} = some_set

for checking {1, 2, 3} == some_set.

Note that this would be a breaking change, as was the previous change to dict matching.

@evhub evhub added this to the v3.0.0 milestone Jan 1, 2023
@evhub
Copy link
Owner Author

evhub commented Jan 7, 2023

Should also add support for set letter matches, with f{} only matching frozensets and m{} only matching collections.Counters with support for properly matching repeated elements.

@evhub evhub added the resolved label Jan 8, 2023
evhub added a commit that referenced this issue Jan 8, 2023
@evhub evhub closed this as completed Jan 8, 2023
@evhub evhub mentioned this issue May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant