8000 gh-134449: fix grammar for `precision_with_grouping` in format description by skirpichev · Pull Request #134608 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-134449: fix grammar for precision_with_grouping in format description #134608

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-134449: fix grammar for precision_with_grouping in format description
This amends f39a07b.  Thanks to Jonathan Poelen.
  • Loading branch information
skirpichev committed May 24, 2025
commit ada07e7ab6277c6824b4467a681bcf38689b6818
2 changes: 1 addition & 1 deletion Doc/library/string.rst
66F1
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ The general form of a *standard format specifier* is:
sign: "+" | "-" | " "
width_and_precision: [`width_with_grouping`][`precision_with_grouping`]
width_with_grouping: [`width`][`grouping`]
precision_with_grouping: "." [`precision`][`grouping`]
precision_with_grouping: "." [`precision`][`grouping`] | "." `grouping`
width: `~python-grammar:digit`+
precision: `~python-grammar:digit`+
grouping: "," | "_"
Expand Down
Loading
0