Python 3.14.0rc1

This commit is contained in:
Hugo van Kemenade 2025-07-22 19:42:27 +03:00
parent 70990ed5ca
commit 48f8831004
36 changed files with 340 additions and 77 deletions

View file

@ -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 @@ def foo():
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 @@ class of the instance or a *non-virtual base class* thereof. The
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 @@ class of the instance or a *non-virtual base class* thereof. The
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 @@ class is used in a class pattern with positional arguments, each
("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 @@ class dict(iterable, **kwargs)
| | 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 @@ class range(start, stop[, step])
| | 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* | |