-
Notifications
You must be signed in to change notification settings - Fork 6
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
OrderedSet.update #17
Comments
Maybe. If update() were added, would it mean adding intersection() and intersection_update() too (and maybe others)? For some reason the MutableSet ABC in https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes prefers the binary operators rather than the method names. For example:
I once knew why but have since forgotten. It's probably as simple as adding I would also add that OrderedSet has only the advantage of random-access indexing. Now that Python's dictionary maintains insertion order, a much faster version of OrderedSet could simply be implemented atop the dictionary data type.
|
Would it be acceptable to add
OrderedSet.update
to act similar toOrderedDict.update
?The text was updated successfully, but these errors were encountered: