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
Devel manual about docstrings #21646
Comments
Branch: u/jmantysalo/devel-manual |
Commit: |
comment:2
Hmm... There are already a "What doctests should test" -part, so at least part of this patch is duplicate. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
No comments got. Anyways, this now encourages slightly more to use TESTS block. Also I documented some arbitrary decisions made. |
comment:6
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Replying to @jdemeyer:
There were tabs. Corrected.
How about this "instead of" -formulation? |
comment:10
There is still one more tab. Could you also make this grammatical fix: diff --git a/src/doc/en/developer/coding_basics.rst b/src/doc/en/developer/coding_basics.rst
index 60e49ec..d65e6d7 100644
--- a/src/doc/en/developer/coding_basics.rst
+++ b/src/doc/en/developer/coding_basics.rst
@@ -283,7 +283,7 @@ information. You can use the existing functions of Sage as templates.
They should have good coverage of the functionality in question.
- A **SEEALSO** block (highly recommended) with links to related parts of
- Sage. This helps users find the features that interests them and discover
+ Sage. This helps users find the features that interest them and discover
the new ones. ::
.. SEEALSO:: |
comment:11
Replying to @jm58660:
Why not simply say "Use X"? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Replying to @jhpalmieri:
Arghs, Emacs. Tab removed and fix applied. Replying to @jdemeyer:
Sohehow "Use But as you wish, this is now changed too. |
comment:14
I was thinking that you could document a few standard keywords in the same way:
|
comment:15
Replying to @jdemeyer:
This is exactly what I hope to have in this list; and for example Has there been or suggested some other parameter name for |
comment:29
Sorry, I missed a plural "s", it should be
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:31
Replying to @mantepse:
's' added. |
comment:33
Replying to @mantepse:
That can be capitalized or not because the part after the colon could be a complete separate sentence. However, I feel it is better to not have it capitalized because it is being used as an explanatory clause. |
comment:34
merge conflict |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:36
New try. |
comment:37
Conflicts with 7.5.beta0 |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:39
Another try. |
Changed branch from u/jmantysalo/devel-manual to |
This patch will slightly modify instructions for docstrings.
I would like to have even more pre-specified formats for some classes of functions. For example should Boolean-valued
is_something()
function be "ReturnTrue
if...", "Test whether" or something else? Also we have an arbitrary decision to usealgorithm=
instead ofimplementation=
,method=
etc.But as a first part, what you think about these changes?
CC: @tscrim @fchapoton
Component: documentation
Author: Jori Mäntysalo
Branch/Commit:
f4818f0
Reviewer: Jeroen Demeyer, Martin Rubey
Issue created by migration from https://trac.sagemath.org/ticket/21646
The text was updated successfully, but these errors were encountered: