GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — Doc: Add a single table as summary to math documentation by Nodd · Pull Request #125810 · python/cpython Conversation
|
|
Thanks for doing this, and linking directly to the preview. I think the summary would be a little better if the arguments were shown, especially since sometimes a value mentioned in the summary is an argument, and sometimes a constant:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I thought about that too, and I even started to implement it. It looks indeed better, but it has to be done manually, so it's a bit tedious. If someone knows a better way than this: :func:`pow(x, y) <pow>` I'm all ears! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The parens are added by a sphinx setting (wrongly, I always thought, as |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I added the arguments. I choose to not mark default, positional-only nor keyword-only arguments in the table to keep it as light as possible. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
👍 I like single table much more. FYI, There is an open PR for string methods: #1709 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <[email protected]>
|
|
||
|
|
||
| ==================================================== ============================================ | ||
| **Number-theoretic and representation functions** |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this should be split out.
For some inspiration you could take look on the C17 and sections in the Annex F.10, e.g. here: https://en.cppreference.com/w/c/numeric/math. So, we should have something like 1) "Floating-point manipulation functions", 2) "Classification and comparison", 3) "Nearest integer operations", 4) "Basic operations" (maybe prod/fsum/etc - should be here).
Number-theoretic/combinatorial functions deserve a separate section.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your suggestion. I simply used the current organization of the page, and copied the existing section labels in the page. I think that reorganizing the whole page can be made in another PR, to focus this one on adding the table. I can do it afterwards.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This looks like a nice improvement to the docs as written. My recommendation would be to merge. If necessary, we can iterate on future PRs.
Thanks @Nodd for your first contribution 🎉
As an FYI, you can ask for folks to rereview here instead of discuss.python.org.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @willingc, I wasn't sure where was the best to ask for review. I'll keep it in mind for next time. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I saw that you were just re-using the same titles as the sections as well as their order so I think it's ok for this PR. However, in a follow-up PR we should address the following:
exp(x) is not a power function per se.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@picnixz, see also #125810 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Folks, I'm merging this as is. Future PRs can iterate on sections and wording. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…5810) * Summary for math module with separate tables * Forgot remainder description * Single table * data instead of func * Add arguments in the table * Fix inconsistencies in pow documentation * Remove full stops from the table Co-authored-by: Hugo van Kemenade <[email protected]> * Fix math.pow link * Fix spacing --------- (cherry picked from commit 74cf596) Co-authored-by: Joseph Martinot-Lagarde <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…5810) * Summary for math module with separate tables * Forgot remainder description * Single table * data instead of func * Add arguments in the table * Fix inconsistencies in pow documentation * Remove full stops from the table Co-authored-by: Hugo van Kemenade <[email protected]> * Fix math.pow link * Fix spacing --------- (cherry picked from commit 74cf596) Co-authored-by: Joseph Martinot-Lagarde <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-126308 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-126309 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…25810) (GH-126308) Doc: Add a single table as summary to math documentation (GH-125810) * Summary for math module with separate tables * Forgot remainder description * Single table * data instead of func * Add arguments in the table * Fix inconsistencies in pow documentation * Remove full stops from the table * Fix math.pow link * Fix spacing --------- (cherry picked from commit 74cf596) Co-authored-by: Joseph Martinot-Lagarde <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…5810) * Summary for math module with separate tables * Forgot remainder description * Single table * data instead of func * Add arguments in the table * Fix inconsistencies in pow documentation * Remove full stops from the table Co-authored-by: Hugo van Kemenade <[email protected]> * Fix math.pow link * Fix spacing --------- Co-authored-by: Hugo van Kemenade <[email protected]>
…5810) * Summary for math module with separate tables * Forgot remainder description * Single table * data instead of func * Add arguments in the table * Fix inconsistencies in pow documentation * Remove full stops from the table Co-authored-by: Hugo van Kemenade <[email protected]> * Fix math.pow link * Fix spacing --------- Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.