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-141004: DocumentPy_MATH_{E, PI, TAU} constants#141373

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
StanFromIreland wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromStanFromIreland:Py_MATH

Conversation

@StanFromIreland
Copy link
Member

@StanFromIrelandStanFromIreland commentedNov 10, 2025
edited
Loading

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM

StanFromIreland reacted with heart emoji
.. c:macro:: Py_MATH_E
The definition of the :data:`math.e` constant.
Copy link
Member

@vstinnervstinnerNov 10, 2025
edited
Loading

Choose a reason for hiding this comment

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

You might include the constant value (with 5 digits after the dot) like:

Suggested change
The definition of the:data:`math.e` constant.
The definition of the:data:`math.e` constant (``2.71828...``).

Same remark for other constants.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm not sure, it is already provided in the docs of the Python functions. Do you feel strongly about this, if so I can add. Otherwise, Peter/Sergey, what do you think?

Choose a reason for hiding this comment

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

I don't spend enough time with the math APIs to have much of an opinion here, so I yield to Victor and Sergey.

Copy link
Member

Choose a reason for hiding this comment

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

.. c:macro:: Py_MATH_E
The definition of the :data:`math.e` constant.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need numbers here. Just the reference is enough.

But you might note c type:

Suggested change
The definition of the:data:`math.e` constant.
The definition(accurate for a:c:type:`double` type)of the:data:`math.e` constant.

Same for other constants.

IMO, you should also reorder existing docs:Py_MATH_PIl must be right behind ofPy_MATH_PI, same forPy_MATH_El vsPy_MATH_E.

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

Reviewers

@vstinnervstinnervstinner approved these changes

@skirpichevskirpichevskirpichev left review comments

@ZeroIntensityZeroIntensityAwaiting requested review from ZeroIntensity

Assignees

No one assigned

Labels

awaiting mergedocsDocumentation in the Doc dirskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@StanFromIreland@vstinner@skirpichev@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp