-
-
Notifications
You must be signed in to change notification settings - Fork 487
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 doctest coverage for integer_ring.pyx #12496
Comments
comment:3
This is my first time submitting a patch: feedback welcome! Added 8 doctests, out of 10 that were missing. The 2 still missing are:
I have no idea what The command |
comment:4
Hi! I am also pretty new to contributing to Sage, and to reviewing. So I have some comments, but they might not all really need to be dealt with. I guess the things that confused me might confuse other people as well, but there's no reason for a non-expert to be looking at some of these things, so maybe it's not really a problem. On the other hand, probably no one will get around to touching this documentation again for a long time, so it makes sense to try to make it as good as possible now. There are some methods which I couldn't figure out what they were supposed to do (mathematically speaking): degree, absolute_degree, parameter. There are some methods for which it would be useful (I think) to explain more clearly what the arguments are.
There are a few places where I wanted to change the wording:
_randomize_mpz could do with more detailed documentation (I think).
|
Reviewer: Hugh Thomas |
comment:5
I fixed most of the things I was complained about previously. Like the original author, I do not understand !richcmp! or !cinit! well enough to write sensible documentation (or tests) for them. I am still perplexed about It is clear that parameter() is returning 1, but I don't understand what it means. Since neither the original author nor I are very experienced, perhaps the best thing would be if someone else could review both our patches. (Alternatively, Samuel, if you agree with my patches, I am also willing to agree to yours, so we can set the ticket to postive review. But I think it might be better to see if someone else will look at it first.) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:7
The patchbot doesn't seem to be attempting to build these patches. Maybe my instruction was unclear? I will try changing it. |
This comment has been minimized.
This comment has been minimized.
comment:8
A lot of functions are missing their input/output blocks, which should be added if we're trying to improve the documentation. The functions The conventions for documentation strings are here. If you fix the two functions I mentioned (and feel free to fix more than that :) ) I'll give the ticket a positive review. |
comment:9
Hi Jim-- Thanks for your review. If the original author doesn't do so, I will try to implement the changes you suggest. cheers, Hugh |
comment:10
Please fill in your real name as Author. |
Attachment: trac_12496-integer_ring-sl2.patch.gz |
This comment has been minimized.
This comment has been minimized.
Author: Samuel Lelievre, Hugh Thomas |
comment:12
I have rebased the patches to apply to 5.2.rc1. @jdemeyer: The original author has not been active on the ticket since submitting the original patch. I added his name as Author per your request and also mine (since I've added a fair bit).
|
Attachment: trac_12496-integer_ring-ht2.patch.gz |
comment:13
Apply trac_12496-integer_ring-sl2.patch, trac_12496-integer_ring-ht2.patch. |
comment:14
There certainly still is room for improvement, but as a first approximation, this patch looks good. |
Changed reviewer from Hugh Thomas to Hugh Thomas, Jeroen Demeyer |
comment:15
Thanks, Jeroen! |
Merged: sage-5.4.rc0 |
Changed author from Samuel Lelievre, Hugh Thomas to Samuel Lelièvre, Hugh Thomas |
Base ticket #12024: bring doctest coverage to 90%.
Apply attachment: trac_12496-integer_ring-sl2.patch, attachment: trac_12496-integer_ring-ht2.patch.
CC: @staroste
Component: documentation
Keywords: Cernay2012
Author: Samuel Lelièvre, Hugh Thomas
Reviewer: Hugh Thomas, Jeroen Demeyer
Merged: sage-5.4.rc0
Issue created by migration from https://trac.sagemath.org/ticket/12496
The text was updated successfully, but these errors were encountered: