GeezerVison is showing github.com — PEP 750: collect spec fixes discovered during final implementation work by davepeck · Pull Request #4364 · python/peps
Conversation
davepeck
commented
Apr 11, 2025
•
edited by AA-Turner
Loading
Uh oh!
There was an error while loading. Please reload this page.
- Change is either:
- To a Draft PEP
- To an Accepted or Final PEP,
- with Steering Council approval
- To fix an editorial issue (markup, typo, link, header, etc)
- PR title prefixed with PEP number (e.g.
PEP 123: Summary of changes)
Hate to do this < 24 hours after acceptance, but as we've been going through the spec with a fine-tooth comb, @lysnikolaou and I discovered a minor spec issue in PEP 750.
The intent of the debug specifier behavior is to precisely match the behavior of current day f-strings. The PEP as accepted got one detail wrong, fixed here.
(The wrong detail: if a debug specifier is used with a format spec but no conversion — t"{value=:foo}" — the Interpolation.conversion should default to None, not s as in the accepted PEP. Having s as the default would be a departure from what f-strings do: they provide no default when there's a format_spec so that __format__() is called.)
📚 Documentation preview 📚: https://pep-previews--4364.org.readthedocs.build/
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
davepeck
changed the title
Spec fix: make the debug spec section fully match f-string behavior
PEP 750: spec fix: make the debug spec section fully match f-string behavior
Apr 11, 2025
|
It might make sense to bundle all PEP changes discovered during implementation into one PR before marking the PEP as Final?
If changes based on implementation experience and user feedback are made to Standards track PEPs while in the Provisional or (with SC approval) Accepted state, they should be noted in the PEP, such that the PEP accurately describes the implementation at the point where it is marked Final.
A
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
davepeck
commented
Apr 11, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
It might make sense to bundle all PEP changes discovered during implementation into one PR before marking the PEP as Final?
That makes sense. I believe that this is the only spec issue that will crop up; the implementation is largely complete and spec-matching. But to be safe, collecting/waiting until we merge into cpython beta makes sense.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Yes, agreed. Let's keep this PR open (possibly also change the title) while we're finilizing the implementation and at least until some more people have reviewed it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
davepeck
changed the title
PEP 750: spec fix: make the debug spec section fully match f-string behavior
PEP 750: collect spec issues fixes discovered during final implementation work
Apr 11, 2025
davepeck
changed the title
PEP 750: collect spec issues fixes discovered during final implementation work
PEP 750: collect spec fixes discovered during final implementation work
Apr 11, 2025
|
We should consider how to sequence this PR (collecting miscellaneous updates) and #4395 (the template concatenation PR)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi @lysnikolaou !
As we discussed during PyCon, I've updated the PEP to:
- Clarify the behavior of
Interpolation.expression
- Make
Interpolation.expression default to "" (currently a value must be provided when explicitly constructing an Interpolation)
The second change is a small but meaningful spec/implementation change — should we also open a steering council issue, or is it okay as is?
/cc @AA-Turner
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 8, 2025
|
Shall we capture the changes to t-string concatenation here @davepeck?
A
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
davepeck
commented
Aug 5, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Shall we capture the changes to t-string concatenation here @davepeck?
A
@AA-Turner Think we captured those in #4395, already merged.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Oops! My mistake, sorry!
A
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
davepeck
commented
Aug 5, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Oops! My mistake, sorry!
Hah! There are so many PEP 750 related PRs at this point that I've personally entirely lost the plot. 😅
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
gvanrossum
Awaiting requested review from gvanrossum
gvanrossum is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|