Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-122450: Expand numbers.Rational docstrings and sphinx docs#136800

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
skirpichev wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromskirpichev:numden-props/122450

Conversation

skirpichev
Copy link
Contributor

@skirpichevskirpichev commentedJul 19, 2025
edited
Loading

  • add docstrings for numerator/denominator attributes
  • removes sphinx docs for above properties in the fractions module
  • revertseb8ac4c

Co-authored-by: Hugo Sansaquaprivet.kitty99@gmail.com

@skirpichevskirpichev changed the titlegh-122450: Expand numbers.Rational docstringsgh-122450: Expand numbers.Rational docstrings and sphinx docsJul 19, 2025
@skirpichevskirpichev added needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsJul 19, 2025
@@ -25,8 +25,8 @@ another rational number, or from a string.

The first version requires that *numerator* and *denominator* are instances
of :class:`numbers.Rational` and returns a new :class:`Fraction` instance
with value equal to ``numerator/denominator`` where the denominator is positive.
If *denominator* is ``0``, it raises a :exc:`ZeroDivisionError`.
with value ``numerator/denominator``. If *denominator* is ``0``, it
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Suggested change
with value ``numerator/denominator``. If *denominator* is ``0``, it
with valueequal to``numerator/denominator``. If *denominator* is ``0``, it

?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaAwaiting requested review from serhiy-storchaka

@AA-TurnerAA-TurnerAwaiting requested review from AA-Turner

Assignees
No one assigned
Labels
awaiting reviewneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixesskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@skirpichev

[8]ページ先頭

©2009-2025 Movatter.jp