Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
gh-132661: Document t-strings andtemplatelib
#135229
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
base:main
Are you sure you want to change the base?
Conversation
…nce of `templatelib.Template`.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@hugovk Thank you for the review and the helpful early feedback! Useful to know about linking. (FWIW this isvery early stage still, so I expect plenty more linting and other issues that we'll eventually resolve.) |
@@ -1044,7 +1082,7 @@ readability:: | |||
Either of these parts, but not both, can be empty. For example:: | |||
10. # (equivalent to 10.0) | |||
1. # (equivalent to 10.0) |
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.
This is incorrect (and unrelated).
1. # (equivalent to 10.0) | |
10. # (equivalent to 10.0) |
t-string | ||
String literals prefixed with ``'t'`` or ``'T'`` are commonly called | ||
"t-strings" which is short for | ||
:ref:`template string literals <t-strings>`. See also :pep:`750`. |
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.
The PEP is the original change proposal, and it's expected to go go out of date. It's good to have a link to it in the docs (e.g. a “see also” in the main docs for the feature), so people can read the motivation and get at the discussion links, but if there's any other info in the PEP that's relevant to readers, it should go in the docs.
:ref:`template string literals<t-strings>`. See also:pep:`750`. | |
:ref:`template string literals<t-strings>`. |
(And yes, the current docs aren't too great at this.)
Uh oh!
There was an error while loading.Please reload this page.
[DRAFT] This has onlyjust begun and is very much a work in progress; putting up a draft PR now for visibility.
We're keeping aTODO list of PEP 750 documentation tasks. There's lots to do.
📚 Documentation preview 📚:https://cpython-previews--135229.org.readthedocs.build/