|
1 | | -# Autogenerated by Sphinx on Tue Jul 8 11:57:16 2025 |
| 1 | +# Autogenerated by Sphinx on Tue Jul 22 19:42:37 2025 |
2 | 2 | # as part of the release process. |
3 | 3 |
|
4 | 4 | topics = { |
@@ -2328,7 +2328,8 @@ def foo(): |
2328 | 2328 |
|
2329 | 2329 | The rule "strings" and the token "NUMBER" are defined in the standard |
2330 | 2330 | Python grammar. Triple-quoted strings are supported. Raw strings and |
2331 | | -byte strings are supported. f-strings are not supported. |
| 2331 | +byte strings are supported. f-strings and t-strings are not |
| 2332 | +supported. |
2332 | 2333 |
|
2333 | 2334 | The forms "signed_number '+' NUMBER" and "signed_number '-' NUMBER" |
2334 | 2335 | are for expressing complex numbers; they require a real number on the |
@@ -5232,9 +5233,9 @@ class of the instance or a *non-virtual base class* thereof. The |
5232 | 5233 | The "str.format()" method and the "Formatter" class share the same |
5233 | 5234 | syntax for format strings (although in the case of "Formatter", |
5234 | 5235 | subclasses can define their own format string syntax). The syntax is |
5235 | | -related to that of formatted string literals, but it is less |
5236 | | -sophisticated and, in particular, does not support arbitrary |
5237 | | -expressions. |
| 5236 | +related to that of formatted string literals and template string |
| 5237 | +literals, but it is less sophisticated and, in particular, does not |
| 5238 | +support arbitrary expressions. |
5238 | 5239 |
|
5239 | 5240 | Format strings contain “replacement fields” surrounded by curly braces |
5240 | 5241 | "{}". Anything that is not contained in braces is considered literal |
@@ -5334,9 +5335,9 @@ class of the instance or a *non-virtual base class* thereof. The |
5334 | 5335 |
|
5335 | 5336 | “Format specifications” are used within replacement fields contained |
5336 | 5337 | within a format string to define how individual values are presented |
5337 | | -(see Format String Syntax and f-strings). They can also be passed |
5338 | | -directly to the built-in "format()" function. Each formattable type |
5339 | | -may define how the format specification is to be interpreted. |
| 5338 | +(see Format String Syntax, f-strings, and t-strings). They can also be |
| 5339 | +passed directly to the built-in "format()" function. Each formattable |
| 5340 | +type may define how the format specification is to be interpreted. |
5340 | 5341 |
|
5341 | 5342 | Most built-in types implement the following options for format |
5342 | 5343 | specifications, although some of the formatting options are only |
@@ -10264,10 +10265,10 @@ class is used in a class pattern with positional arguments, each |
10264 | 10265 | ("u'value'") was reintroduced to simplify the maintenance of dual |
10265 | 10266 | Python 2.x and 3.x codebases. See **PEP 414** for more information. |
10266 | 10267 |
|
10267 | | -A string literal with "'f'" or "'F'" in its prefix is a *formatted |
10268 | | -string literal*; see f-strings. The "'f'" may be combined with "'r'", |
10269 | | -but not with "'b'" or "'u'", therefore raw formatted strings are |
10270 | | -possible, but formatted bytes literals are not. |
| 10268 | +A string literal with "f" or "F" in its prefix is a *formatted string |
| 10269 | +literal*; see f-strings. The "f" may be combined with "r", but not |
| 10270 | +with "b" or "u", therefore raw formatted strings are possible, but |
| 10271 | +formatted bytes literals are not. |
10271 | 10272 |
|
10272 | 10273 | In triple-quoted literals, unescaped newlines and quotes are allowed |
10273 | 10274 | (and are retained), except that three unescaped quotes in a row |
@@ -12703,7 +12704,9 @@ class dict(iterable, **kwargs) |
12703 | 12704 | | | replaced by the contents of the | | |
12704 | 12705 | | | iterable *t* | | |
12705 | 12706 | +--------------------------------+----------------------------------+-----------------------+ |
12706 | | -| "del s[i:j]" | same as "s[i:j] = []" | | |
| 12707 | +| "del s[i:j]" | removes the elements of "s[i:j]" | | |
| 12708 | +| | from the list (same as "s[i:j] = | | |
| 12709 | +| | []") | | |
12707 | 12710 | +--------------------------------+----------------------------------+-----------------------+ |
12708 | 12711 | | "s[i:j:k] = t" | the elements of "s[i:j:k]" are | (1) | |
12709 | 12712 | | | replaced by those of *t* | | |
@@ -13033,7 +13036,9 @@ class range(start, stop[, step]) |
13033 | 13036 | | | replaced by the contents of the | | |
13034 | 13037 | | | iterable *t* | | |
13035 | 13038 | +--------------------------------+----------------------------------+-----------------------+ |
13036 | | -| "del s[i:j]" | same as "s[i:j] = []" | | |
| 13039 | +| "del s[i:j]" | removes the elements of "s[i:j]" | | |
| 13040 | +| | from the list (same as "s[i:j] = | | |
| 13041 | +| | []") | | |
13037 | 13042 | +--------------------------------+----------------------------------+-----------------------+ |
13038 | 13043 | | "s[i:j:k] = t" | the elements of "s[i:j:k]" are | (1) | |
13039 | 13044 | | | replaced by those of *t* | | |
|
0 commit comments