Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
PEP 737: gh-111696: Add %T format to PyUnicode_FromFormat()#111703
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
0ebff22
to50923bf
CompareI updated my PR:
|
50923bf
to6c09d87
Compare6c09d87
to86da2a3
CompareI reduced this PR to the bare minimum, non controversial and most important: only add %T format just to add a type name ( Later, we can extend the API:
Extended the API later is not incompatible with this change: they would be additions. |
@serhiy-storchaka: Are you ok with this minor addition to PyUnicode_FromFormat()? My work on the limited C API is blocked by this missing feature. As I wrote previously, the formatcan be extended later if someone wants to cover most cases, add an alternative format, etc. |
I would prefer to make the size modifier mandatory and use it as the format specifier in It is also less ambiguous. |
My previous attempt in 2018:#9122 |
Previous attempt, merged commit886483e, which was reverted a few days later. |
I wrotePEP 737 – Unify type name formatting for these changes: seethe PEP discussion. |
PEP 737 changed the API since this PR was created. I close this PR for now and will create a new one (or maybe reopen this PR) since PEP 737 will be approved. |
Uh oh!
There was an error while loading.Please reload this page.
📚 Documentation preview 📚:https://cpython-previews--111703.org.readthedocs.build/