-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Removes sage.combinat.generator #14355
Comments
comment:2
I love patches that remove code and make Sage works better ! But, the best strategy would be to introduce deprecations and not to remove the functions. The reason is that some people may use the iterators in their own codes and that code should not be broken by a new Sage version. Vincent |
comment:3
Come ooooooooooooon. These things are useless. Nobody knows they exist, and those who do will know about itertools.... |
comment:4
So what do we do, we keep this useless thing for another year and ADD code to it ? Nathann |
comment:5
Ok let's solve it with Sage-devel. I'll deprecate this stuff if needed but that's really a waste of time. Nathann |
comment:8
Well, given that the only answers on sage-devel seemed to agree with plain removal, and that after my message on sage-combinat [1] nothing was added, I guess that this ticket is still waiting for a review. Nathann [1] https://groups.google.com/d/topic/sage-combinat-devel/xW_zvggLm84/discussion |
Author: Nathann Cohen |
Reviewer: Travis Scrimshaw |
comment:9
While I'm not 100% comfortable with outright removal of something in mid-level sage, I doubt anyone will really notice that this is gone (especially since it is only referenced in one place). So on that note, I'm setting this to positive review. |
comment:11
|
comment:12
Green light from the patchbot in beta2 and something uses it in 5.10.beta0 ?... Honestly Nathann |
comment:13
I don't get it. This import line IS in the beta1 version, but all tests do pass on that file
And... With the patch applied, this works :
even though the file does not exist anymore Nathann |
comment:14
Riiiiiiiight.... Because even though the module has been removed the Nathann |
comment:15
The only place I could find another reference to it was in
so it should just be a matter of replacing it there as well. |
comment:16
Attachment: trac_14355.patch.gz Fixed ! And ready for another review Nathann |
comment:17
Looks good to me after running |
Merged: sage-5.10.beta0 |
Vincent noticed in #10534 that this module was completely useless because of itertools, and it even happens that nothing in Sage uses it.
What about getting rid of it ?
It implements:
concat
-- replaced byitertools.chain
map
-- replaced by ...map
element
-- replaced byitertools.repeat
select
-- replaced byitertools.ifilter
successor
-- "almost" replaced byitertools.takewhile
Nathann
CC: @videlec
Component: combinatorics
Author: Nathann Cohen
Reviewer: Travis Scrimshaw
Merged: sage-5.10.beta0
Issue created by migration from https://trac.sagemath.org/ticket/14355
The text was updated successfully, but these errors were encountered: