-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Deprecate sage.misc.misc.uniq #27014
Comments
Dependencies: #26933 |
Commit: |
Reviewer: Martin Rubey |
comment:4
I am all for it! (I ran the patchbot and looked at the code) |
comment:5
I am not so sure about actually deprecating it. The resulting behavior after |
comment:6
Replying to @tscrim:
No. The existing |
comment:7
Replying to @jdemeyer:
Ah, right, and the sorting of the output is documented. However, given the (eventual) goal, I think we should replace
The current deprecation message seems to indicate that the function will be removed altogether. |
Changed reviewer from Martin Rubey to none |
comment:8
Why not simply introduce the function Is there a good reason to call what's now |
comment:9
Replying to @mantepse:
Someone might be relying on this sorting behavior in the wild, so we need to deprecate it. |
comment:10
Replying to @tscrim:
OK, although I wouldn't be looking for I was looking for
I think that we all agree on that. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:12
Reworded deprecation message as Travis suggested. |
comment:13
Thank you. |
Reviewer: Martin Rubey, Travis Scrimshaw |
comment:14
Retarging tickets optimistically to the next milestone. If you are responsible for this ticket (either its reporter or owner) and don't believe you are likely to complete this ticket before the next release (8.7) please retarget this ticket's milestone to sage-pending or sage-wishlist. |
Changed branch from u/jdemeyer/deprecate_sage_misc_misc_uniq to |
<!-- Please provide a concise, informative and self-explanatory title. --> <!-- Don't put issue numbers in the title. Put it in the Description below. --> <!-- For example, instead of "Fixes #12345", use "Add a new method to multiply two integers" --> ### 📚 Description <!-- Describe your changes here in detail. --> <!-- Why is this change required? What problem does it solve? --> - move `powerset` (= `subsets`) from the problematic `sage.misc.misc` module to `sage.combinat.subset`, - likewise we move the implementation of `uniq` (`sage.misc.misc._stable_uniq`) and finish the job from #27014, - we remove `sage.misc.misc.union`, deprecated in #16604, - some other fixes to imports. <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> Part of: - #29705 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x ]`. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> - Depends on #35672 <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #35564 Reported by: Matthias Köppe Reviewer(s): David Coudert, Matthias Köppe
uniq(X)
is just a shorthand forsorted(set(X))
: I don't think that we need a separate function for that. More seriously, the sorting is problematic since arbitrary sets may not be sortable in general, especially in Python 3 or after applying #22029.Depends on #26933
CC: @tscrim
Component: misc
Author: Jeroen Demeyer
Branch/Commit:
b4f67ca
Reviewer: Martin Rubey, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/27014
The text was updated successfully, but these errors were encountered: