-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
some cleanup in sage.combinat.combinat #14138
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Il faut vraiment que vous compreniez que ce n'est pas en esperant que "quelqu'un finira par faire le taf un jour" que ces codes pourris vont se réécrire tout seuls. Si tous les gens qui utilisent ces codes savent ou sont les bugs et les contournent, ils n'ont aucune raison de se mettre à améliorer le code (puisqu'on dirait qu'ils ne tirent aucune fierté d'avoir un code propre) et on restera avec ces conneries à vie. Ce qui personnellement me retient de les recoder, c'est parce que je refuse catégoriquement de mettre les mains dans les catégories. C'est exclusivement ca, parce que je sais que si je mets la main dedans j'aurai besoin de vous sans arret, que je ne serai autonome pour rien et que je devrais me farcir des choix de design avec lesquels je ne suis pas d'accord. Vous faites ce que vous voulez avec votre business, mais moi c'est ca qui me retient de programmer chez vous. Voilà. Sinon, si ca vous botte de reviewer ces deux trois trucs sur lesquels j'ai passé une petite heure d'allers-retour en discutant avec un pote, ce sera toujours ca de fait. Nathann |
comment:4
(note that the patch changes the behaviour of |
comment:7
Hello Nathann, the patch seems good and those files in
|
comment:9
Yep
Done ! Thanks for noticing Nathann |
comment:10
Attachment: trac_14138.patch.gz |
Author: Nathann Cohen |
comment:11
Thanks. Current patch looks good to me and passes all doctests in |
Reviewer: Punarbasu Purkayastha |
comment:12
Thaaaaaaaaaaaaaaaanks ! Nathann |
comment:13
Hi Nathann! Thanks much for the cleanup! A couple details:
Cheers, |
comment:14
Merci d'avoir fait ce nettoyage! |
comment:16
Yo.
I wrote that above. The reason is that the code changed as it now calls what it should have been calling in the first place, and this doctests which says that "the behaviour is not the one that we usually expect" has apprently become what one would expect. Correct it if it is wrong.
I did not want to deprecate min_part but min_part = 0 only. Because IT RETURNS WRONG RESULTS.
This ticket was positively reviewed yesterday, your ticket #13605 is 4 months old, is needing a review, weighs 400kb and depends on another ticket #13688 which also needs a review. Why the hell would you delay this one instead and have us work on top of yours ?
Have fun chatting about what should be done in the future.
This is no Sphinx code. This is a deprecation warning, automatically generated by the
What I do not like in this ticket should be obvious to everybody. Just read the code sample and the documentation I quoted. This ticket has been created, written and reviewed in three days. It is very short. Unless you can give me a fair reason why my patch should depend on yours, which once more is NOT reviewed, is 400kb long and depends on another ticket which still waits for a review please set this ticket back to its initial state. Nathann |
comment:17
Bullshit. Quand je vous parle de bugs dans votre code, la seule réponse que j'ai jamais eue c'est 'on le fera plus tard', ou "faut voir si le code perso de tout le monde continue à passer". JE fixe les bugs que je trouve dans votre code, et votre code pourri ruine MES calculs. Je fous dans ce projet les codes dont je pense qu'ils peuvent aider d'autres personnes, mais je ne me permets pas d'y foutre des trucs faux qui peuvent induire en erreur des mecs qui essaient de faire leur taf.
Vous ne prioritisez pas, vous vous foutez de ma gueule. Vous ne corrigez pas les bugs que vous voyez, vous les remettez systematiquement à plus tard, et c'est pour ca que j'écris des patches comme celui-là. Je change ce que je peux changer sans avoir a comprendre vos hierachies insupportables. Sur #14019 il est écrit que Florent s'engageait à corriger le bug des posets sous un mois. C'était le 27 janvier. Si tu devais prendre les paris dessus, tu dirais quoi ? Qu'il est dessus, ou qu'il a oublié ? Il reste une semaine. Je crois que depuis mon départ j'ai du lui balancer une bonne dizaine de mails auxquels je n'ai eu AUCUNE réponse. J'en ai marre de la politique. Faut corriger ces conneries, et le faire vite. Si vous preferez passer votre temps à discuter c'est cool, mais faut nous laisser faire le taf urgent. Et les résultats faux, c'est prioritaire sur les features. Nathann |
comment:18
@nthiery: This ticket is mostly orthogonal in functionality to the work in #13605. Most of the changes are in combinat.py which is largely untouched by that ticket. This ticket should not be based on #13605. About Please set this back to positive review, unless there are more compelling reasons to base it on #13605. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:21
Replying to @ppurka:
I totaly agree: it should not depend on #13605! I am just pointing out that, for a minor change that is debatable, it might not be worth creating a conflict.
As you wish, as long as you promise to support those users that are using this option, |
comment:22
Replying to @nathanncohen:
Fair enough. I missed the one line change in the code. Thanks for fixing this! Please add a doctest for the new behavior stating something like: "repetitions are handled properly since #...."
I never said it should wait for #13605.
Perfect. Thanks for checking this out.
Good point.
Thanks for adding a description. I might be stupid, but I was missing this information.
You can set it back to positive review as soon as the little things above are resolved. Thanks for handling this in such a prompt manner. |
Attachment: trac_14138-doctests.patch.gz |
comment:23
Needs a review ! Nathann |
This comment has been minimized.
This comment has been minimized.
comment:24
I can't answer for Punarbasu, but I personally will not. I will not tolerate bugs in this software because 10 guys who know where the code is wrong and do not make any effort to fix it would have to change their personal code. If it's a problem for you, just create in your branch a patch that reverses the removal of those functions when it will be deleted. Of course that will take time to rebase, and you may have to do this often, and that's a lot of work, but well.. You chosed this development model, didn't you ? What is for sure is that we never did. Nathann |
Changed reviewer from Punarbasu Purkayastha to Punarbasu Purkayastha, Nicolas M. Thiéry |
comment:25
Doctests look good to me. Thanks for fixing this. :) |
Merged: sage-5.8.beta1 |
comment:28
Sorry for the trouble. I did not want to have this ticket depend on something else that would be waiting for a review for a year, as #13605 is already 4 months old. Nathann |
comment:29
Also for the record, #13605 was positively reviewed about the same time as this one. |
comment:30
This ticket was set to I'm sorry for the trouble it created on your side. I just want to see those problems fixed quickly. And twice, if needed. Nathann |
Because I hate that :
From the help of unordered_tuples (in the global namespace):
Warning: Wraps GAP - hence mset must be a list of objects that have string
representations that can be interpreted by the GAP interpreter.
If mset consists of at all complicated Sage objects, this
function does not do what you expect. A proper function should
be written! (TODO!)
From the help of permutations_iterator (in the global namespace, with no depracation warning):
help of number_of_permutations (same as above).
What this ticket does :
min_part = 0
, in the hope that the feature will be made unavailable as soon as possible, and because Nicolas told me that I should deprecate it first (turns out that there has been a warning since 2009 already).MultichooseNK(5,3)
because I refuse to touch anything that uses things like CombinatorialClass.number_of_*
that are imported in the global namespace by afrom sage.combinat.combinat import *
because they are almost all deprecated anyway and will be removed, even if we have to wait for one more year.Nathann
Apply:
CC: @nthiery @hivert @hivert @ppurka @tscrim
Component: combinatorics
Author: Nathann Cohen
Reviewer: Punarbasu Purkayastha, Nicolas M. Thiéry
Merged: sage-5.8.beta1
Issue created by migration from https://trac.sagemath.org/ticket/14138
The text was updated successfully, but these errors were encountered: