Skip to content

decimal docs: specification link and examples - #128698

Merged
hugovk merged 8 commits into
python:mainfrom
skirpichev:decimal-docs
Dec 16, 2025
Merged

decimal docs: specification link and examples#128698
hugovk merged 8 commits into
python:mainfrom
skirpichev:decimal-docs

Conversation

@skirpichev

@skirpichevskirpichev commented Jan 10, 2025

Copy link
Copy Markdown
Member
  • added a direct reference to a floating-point model used
  • and few examples for formatted string output

📚 Documentation preview 📚: https://cpython-previews--128698.org.readthedocs.build/

* added a direct reference to a floating-point model used
* and few examples for formatted string output
Comment threadDoc/library/decimal.rst Outdated
skirpichevand others added 2 commits January 10, 2025 09:16
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Comment threadDoc/library/decimal.rst Outdated
Comment threadDoc/library/decimal.rst Outdated
Comment threadDoc/library/decimal.rst
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

@StanFromIrelandStanFromIreland 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.

Everything looks good to me

Comment threadDoc/library/decimal.rst
@skirpichev

Copy link
Copy Markdown
MemberAuthor

@ericvsmith, refs to format/f-strings - added.

@ericvsmith

Copy link
Copy Markdown
Member

@ericvsmith, refs to format/f-strings - added.

I think that's good. It doesn't mention str.format, but that's not so important any more and I hope that anyone who really cares about it knows that it's all based on __format__.

@skirpichev

Copy link
Copy Markdown
MemberAuthor

It doesn't mention str.format, but that's not so important

I think this will be too verbose, it's already mention the format() builtin docs, which has links to __format__ and then to str.format()

@ericvsmith

Copy link
Copy Markdown
Member

It doesn't mention str.format, but that's not so important

I think this will be too verbose, it's already mention the format() builtin docs, which has links to __format__ and then to str.format()

Agreed.

Comment threadDoc/library/decimal.rst Outdated
@hugovk
hugovk enabled auto-merge (squash) December 16, 2025 11:34
@hugovk
hugovk merged commit 2450be6 into python:mainDec 16, 2025
28 checks passed
@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsDec 16, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @skirpichev for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2025
(cherry picked from commit 2450be6)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2025
(cherry picked from commit 2450be6)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-142804 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Dec 16, 2025
@bedevere-app

Copy link
Copy Markdown

GH-142805 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Dec 16, 2025
@skirpichev
skirpichev deleted the decimal-docs branch December 16, 2025 11:43
kumaraditya303 pushed a commit that referenced this pull request Dec 17, 2025
…2804)
decimal docs: specification link and examples (GH-128698)
(cherry picked from commit 2450be6)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
kumaraditya303 pushed a commit that referenced this pull request Dec 17, 2025
…2805)
decimal docs: specification link and examples (GH-128698)
(cherry picked from commit 2450be6)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip issueskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants

@skirpichev@ericvsmith@hugovk@StanFromIreland@rruuaanng@serhiy-storchaka