-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
base: main
Are you sure you want to change the base?
Conversation
It might make sense to bundle all PEP changes discovered during implementation into one PR before marking the PEP as Final?
A |
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. |
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. |
We should consider how to sequence this PR (collecting miscellaneous updates) and #4395 (the template concatenation PR) |
Hi @lysnikolaou ! As we discussed during PyCon, I've updated the PEP to:
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 |
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}"
— theInterpolation.conversion
should default toNone
, nots
as in the accepted PEP. Havings
as the default would be a departure from what f-strings do: they provide no default when there's aformat_spec
so that__format__()
is called.)📚 Documentation preview 📚: https://pep-previews--4364.org.readthedocs.build/