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-130664: specify how thousands separators are used with 0-padding#131030

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 merge7 commits intopython:main
base:main
Choose a base branch
Loading
fromskirpichev:fill-docs/130664
Open
Changes from1 commit
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
PrevPrevious commit
address review: don't repeat description of digit group separator
  • Loading branch information
@skirpichev
skirpichev committedAug 2, 2025
commit4aae176256d40bae94e316fa5496c7564eb93671
6 changes: 3 additions & 3 deletionsDoc/library/string.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -431,9 +431,9 @@ If not specified, then the field width will be determined by the content.
When no explicit alignment is given, preceding the *width* field by a zero
(``'0'``) character enables sign-aware zero-padding for numeric types,
excluding :class:`complex`. This is equivalent to a *fill* character of
``'0'`` with an *alignment* type of ``'='``. Ifdigit group separators of the
integral partof a number areused (as specified either by the ``','`` or ``'_'``
option), they are also placed betweenleading zeros.
``'0'`` with an *alignment* type of ``'='``. Ifthe *grouping* option for
theintegral partisused, a digit group separator is also inserted between
leading zeros.

.. versionchanged:: 3.10
Preceding the *width* field by ``'0'`` no longer affects the default
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp