FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-92417: `fractions`, `decimal`: Improve docs for alternative constructor methods by AlexWaygood · Pull Request #92421 · python/cpython · GitHub

/ cpython Public

gh-92417: fractions, decimal: Improve docs for alternative constructor methods - #92421

Merged
ambv merged 10 commits into
python:mainfrom
AlexWaygood:patch-5
May 19, 2022
Merged

gh-92417: fractions, decimal: Improve docs for alternative constructor methods#92421
ambv merged 10 commits into
python:mainfrom
AlexWaygood:patch-5

Conversation

Copy link
Copy Markdown
Member

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I would remove the note directive at all. It attracts too much attention. Instead I would add something like "This is a limited version of the :class:`Fraction` constructor which only accepts :class:`~numbers.Integral` or :class:`float`." in plain paragraph.

Replace the method directive with classmethod for class methods.

And the same should be done for Decimal. It would be better to do all this in a single PR.

AlexWaygood marked this pull request as draft May 8, 2022 05:05
AlexWaygood added the needs backport to 3.11 only security fixes label May 8, 2022
AlexWaygood changed the title gh-92417: fractions docs: remove references to Python <3.2 gh-92417: fractions, decimal: Improve docs for alternative constructor methods May 8, 2022
Comment thread Doc/library/fractions.rst Outdated
Comment thread Doc/library/decimal.rst Outdated
AlexWaygood marked this pull request as ready for review May 8, 2022 17:44
AlexWaygood requested a review from rhettinger as a code owner May 8, 2022 17:44
Comment thread Doc/library/decimal.rst Outdated
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>

Copy link
Copy Markdown
Member

It would be nice if some math people (like @mdickinson, or @rhettinger, or @tim-one, or @skrah) take a look at it.

Comment thread Doc/library/decimal.rst Outdated

mdickinson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

One nitpick; otherwise, the changes look good to me.

Comment thread Doc/library/decimal.rst
Comment thread Doc/library/decimal.rst Outdated
rhettinger self-assigned this May 9, 2022
Comment thread Doc/library/decimal.rst Outdated
Comment thread Doc/library/decimal.rst
Comment thread Doc/library/decimal.rst
Comment thread Doc/library/fractions.rst

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be put in the comfy chair!

Copy link
Copy Markdown
Member Author

Thanks all for the reviews! I feel like I've received slightly contradictory feedback on this, and it was certainly never my intent to make an aggressive edit, so I've reduced the PR down to a minimal diff which should hopefully be less controversial.

I have made the requested changes; please review again.

Copy link
Copy Markdown

Thanks for making the requested changes!

@serhiy-storchaka, @mdickinson, @rhettinger: please review the changes made to this pull request.

Copy link
Copy Markdown
Member

I feel like I've received slightly contradictory feedback on this

Agreed. Raymond's assigned this to himself, so I'll duck out at this point and leave this to you and him.

mdickinson removed their request for review May 10, 2022 18:36

Copy link
Copy Markdown
Member Author

@rhettinger, is there anything more you'd like me to do here? :)

(I don't have merge privileges; I'm only a triager.)

ambv merged commit 090df84 into python:main May 19, 2022

Copy link
Copy Markdown
Contributor

Thanks @AlexWaygood for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

Copy link
Copy Markdown

GH-92970 is a backport of this pull request to the 3.11 branch.

bedevere-bot removed the needs backport to 3.11 only security fixes label May 19, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 19, 2022
…constructor methods (pythonGH-92421)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 090df84)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 19, 2022
…constructor methods (pythonGH-92421)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 090df84)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

Copy link
Copy Markdown

GH-92971 is a backport of this pull request to the 3.10 branch.

bedevere-bot removed the needs backport to 3.10 only security fixes label May 19, 2022
AlexWaygood deleted the patch-5 branch May 19, 2022 15:29
ambv pushed a commit that referenced this pull request May 19, 2022
…uctor methods (GH-92421) (GH-92970)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 090df84)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
ambv pushed a commit that referenced this pull request May 19, 2022
…uctor methods (GH-92421) (GH-92971)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 090df84)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL