diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2025-07-22 16:42:27 (GMT) |
---|---|---|
committer | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2025-07-22 16:42:44 (GMT) |
commit | 48f88310044c6ef877f3b0761cf7afece2f8fb3a (patch) | |
tree | 76d5269db6287831a0476b8461f13a54810d0fdb /Lib | |
parent | 70990ed5cad5b886a7f595923724706a222c5945 (diff) | |
download | cpython-3.14.0rc1.zip cpython-3.14.0rc1.tar.gz cpython-3.14.0rc1.tar.bz2 |
Python 3.14.0rc1v3.14.0rc1
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pydoc_data/topics.py | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/Lib/pydoc_data/topics.py b/Lib/pydoc_data/topics.py index e325179..71b1917 100644 --- a/Lib/pydoc_data/topics.py +++ b/Lib/pydoc_data/topics.py @@ -1,4 +1,4 @@ -# Autogenerated by Sphinx on Tue Jul 8 11:57:16 2025 +# Autogenerated by Sphinx on Tue Jul 22 19:42:37 2025 # as part of the release process. topics = { @@ -2328,7 +2328,8 @@ A literal pattern corresponds to most literals in Python. Syntax: The rule "strings" and the token "NUMBER" are defined in the standard Python grammar. Triple-quoted strings are supported. Raw strings and -byte strings are supported. f-strings are not supported. +byte strings are supported. f-strings and t-strings are not +supported. The forms "signed_number '+' NUMBER" and "signed_number '-' NUMBER" are for expressing complex numbers; they require a real number on the @@ -5232,9 +5233,9 @@ expression list. The "str.format()" method and the "Formatter" class share the same syntax for format strings (although in the case of "Formatter", subclasses can define their own format string syntax). The syntax is -related to that of formatted string literals, but it is less -sophisticated and, in particular, does not support arbitrary -expressions. +related to that of formatted string literals and template string +literals, but it is less sophisticated and, in particular, does not +support arbitrary expressions. Format strings contain “replacement fields” surrounded by curly braces "{}". Anything that is not contained in braces is considered literal @@ -5334,9 +5335,9 @@ Format Specification Mini-Language “Format specifications” are used within replacement fields contained within a format string to define how individual values are presented -(see Format String Syntax and f-strings). They can also be passed -directly to the built-in "format()" function. Each formattable type -may define how the format specification is to be interpreted. +(see Format String Syntax, f-strings, and t-strings). They can also be +passed directly to the built-in "format()" function. Each formattable +type may define how the format specification is to be interpreted. Most built-in types implement the following options for format specifications, although some of the formatting options are only @@ -10264,10 +10265,10 @@ added as a synonym of "'br'".Support for the unicode legacy literal ("u'value'") was reintroduced to simplify the maintenance of dual Python 2.x and 3.x codebases. See **PEP 414** for more information. -A string literal with "'f'" or "'F'" in its prefix is a *formatted -string literal*; see f-strings. The "'f'" may be combined with "'r'", -but not with "'b'" or "'u'", therefore raw formatted strings are -possible, but formatted bytes literals are not. +A string literal with "f" or "F" in its prefix is a *formatted string +literal*; see f-strings. The "f" may be combined with "r", but not +with "b" or "u", therefore raw formatted strings are possible, but +formatted bytes literals are not. In triple-quoted literals, unescaped newlines and quotes are allowed (and are retained), except that three unescaped quotes in a row @@ -12703,7 +12704,9 @@ accepts integers that meet the value restriction "0 <= x <= 255"). | | replaced by the contents of the | | | | iterable *t* | | +--------------------------------+----------------------------------+-----------------------+ -| "del s[i:j]" | same as "s[i:j] = []" | | +| "del s[i:j]" | removes the elements of "s[i:j]" | | +| | from the list (same as "s[i:j] = | | +| | []") | | +--------------------------------+----------------------------------+-----------------------+ | "s[i:j:k] = t" | the elements of "s[i:j:k]" are | (1) | | | replaced by those of *t* | | @@ -13033,7 +13036,9 @@ accepts integers that meet the value restriction "0 <= x <= 255"). | | replaced by the contents of the | | | | iterable *t* | | +--------------------------------+----------------------------------+-----------------------+ -| "del s[i:j]" | same as "s[i:j] = []" | | +| "del s[i:j]" | removes the elements of "s[i:j]" | | +| | from the list (same as "s[i:j] = | | +| | []") | | +--------------------------------+----------------------------------+-----------------------+ | "s[i:j:k] = t" | the elements of "s[i:j:k]" are | (1) | | | replaced by those of *t* | | |