8000 PEP 750: collect spec fixes discovered during final implementation work by davepeck · Pull Request #4364 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

PEP 750: collect spec fixes discovered during final implementation work #4364

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from 1 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
Prev Previous commit
Next Next commit
!s, not :s
  • Loading branch information
davepeck committed Apr 11, 2025
commit 3ee52996b12f7de01cb4901705739951aef9df26
2 changes: 1 addition & 1 deletion peps/pep-0750.rst
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ defaults to ``r``:
assert template.interpolations[0].value == "World"
assert template.interpolations[0].conversion == "r"

If a conversion is explicitly provided, it is kept: ``t'{value=:s}'``
If a conversion is explicitly provided, it is kept: ``t'{value=!s}'``
is treated as ``t'value={value!s}'``.

If a format string is provided without a conversion, the ``conversion``
Expand Down
Loading
0