Skip to content

Commit 8a526ec

Browse files
committed
Python 3.13.4
1 parent aa9eb5f commit 8a526ec

File tree

101 files changed

+1037
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1037
-246
lines changed

Doc/library/hashlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ a file or file-like object.
302302

303303
.. versionadded:: 3.11
304304

305-
.. versionchanged:: next
305+
.. versionchanged:: 3.13.4
306306
Now raises a :exc:`BlockingIOError` if the file is opened in blocking
307307
mode. Previously, spurious null bytes were added to the digest.
308308

Doc/library/logging.handlers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ possible, while any potentially slow operations (such as sending an email via
11801180
This starts up a background thread to monitor the queue for
11811181
LogRecords to process.
11821182

1183-
.. versionchanged:: next
1183+
.. versionchanged:: 3.13.4
11841184
Raises :exc:`RuntimeError` if called and the listener is already
11851185
running.
11861186

Doc/library/os.path.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,15 @@ the :mod:`glob` module.)
446446
.. versionchanged:: 3.10
447447
The *strict* parameter was added.
448448

449-
.. versionchanged:: next
449+
.. versionchanged:: 3.13.4
450450
The :py:data:`~os.path.ALLOW_MISSING` value for the *strict* parameter
451451
was added.
452452

453453
.. data:: ALLOW_MISSING
454454

455455
Special value used for the *strict* argument in :func:`realpath`.
456456

457-
.. versionadded:: next
457+
.. versionadded:: 3.13.4
458458

459459
.. function:: relpath(path, start=os.curdir)
460460

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ The AF_* and SOCK_* constants are now :class:`AddressFamily` and
470470
.. versionchanged:: 3.11
471471
NetBSD support was added.
472472

473-
.. versionchanged:: next
473+
.. versionchanged:: 3.13.4
474474
Restored missing ``CAN_RAW_ERR_FILTER`` on Linux.
475475

476476
.. data:: CAN_BCM

Doc/library/tarfile.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ The :mod:`tarfile` module defines the following exceptions:
256256
The exception that was raised to reject the replacement member is available
257257
as :attr:`!BaseException.__context__`.
258258

259-
.. versionadded:: next
259+
.. versionadded:: 3.13.4
260260

261261

262262
The following constants are available at the module level:
@@ -1095,7 +1095,7 @@ reused in custom filters:
10951095

10961096
Return the modified ``TarInfo`` member.
10971097

1098-
.. versionchanged:: next
1098+
.. versionchanged:: 3.13.4
10991099

11001100
Link targets are now normalized.
11011101

Include/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/*--start constants--*/
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 13
21-
#define PY_MICRO_VERSION 3
21+
#define PY_MICRO_VERSION 4
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
2323
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.13.3+"
26+
#define PY_VERSION "3.13.4"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/pydoc_data/topics.py

Lines changed: 76 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Autogenerated by Sphinx on Tue Apr 8 15:54:03 2025
1+
# Autogenerated by Sphinx on Tue Jun 3 17:34:20 2025
22
# as part of the release process.
33

44
topics = {
@@ -4385,7 +4385,7 @@ class pdb.Pdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=Fa
43854385
When using "pdb.pm()" or "Pdb.post_mortem(...)" with a chained
43864386
exception instead of a traceback, it allows the user to move
43874387
between the chained exceptions using "exceptions" command to list
4388-
exceptions, and "exception <number>" to switch to that exception.
4388+
exceptions, and "exceptions <number>" to switch to that exception.
43894389

43904390
Example:
43914391

@@ -9011,7 +9011,14 @@ class is used in a class pattern with positional arguments, each
90119011
Return centered in a string of length *width*. Padding is done
90129012
using the specified *fillchar* (default is an ASCII space). The
90139013
original string is returned if *width* is less than or equal to
9014-
"len(s)".
9014+
"len(s)". For example:
9015+
9016+
>>> 'Python'.center(10)
9017+
' Python '
9018+
>>> 'Python'.center(10, '-')
9019+
'--Python--'
9020+
>>> 'Python'.center(4)
9021+
'Python'
90159022

90169023
str.count(sub[, start[, end]])
90179024

@@ -9020,7 +9027,18 @@ class is used in a class pattern with positional arguments, each
90209027
*end* are interpreted as in slice notation.
90219028

90229029
If *sub* is empty, returns the number of empty strings between
9023-
characters which is the length of the string plus one.
9030+
characters which is the length of the string plus one. For example:
9031+
9032+
>>> 'spam, spam, spam'.count('spam')
9033+
3
9034+
>>> 'spam, spam, spam'.count('spam', 5)
9035+
2
9036+
>>> 'spam, spam, spam'.count('spam', 5, 10)
9037+
1
9038+
>>> 'spam, spam, spam'.count('eggs')
9039+
0
9040+
>>> 'spam, spam, spam'.count('')
9041+
17
90249042

90259043
str.encode(encoding='utf-8', errors='strict')
90269044

@@ -9217,8 +9235,8 @@ class is used in a class pattern with positional arguments, each
92179235

92189236
str.isprintable()
92199237

9220-
Return true if all characters in the string are printable, false if
9221-
it contains at least one non-printable character.
9238+
Return "True" if all characters in the string are printable,
9239+
"False" if it contains at least one non-printable character.
92229240

92239241
Here “printable” means the character is suitable for "repr()" to
92249242
use in its output; “non-printable” means that "repr()" on built-in
@@ -9465,6 +9483,18 @@ class is used in a class pattern with positional arguments, each
94659483
>>> ' 1 2 3 '.split()
94669484
['1', '2', '3']
94679485

9486+
If *sep* is not specified or is "None" and *maxsplit* is "0", only
9487+
leading runs of consecutive whitespace are considered.
9488+
9489+
For example:
9490+
9491+
>>> "".split(None, 0)
9492+
[]
9493+
>>> " ".split(None, 0)
9494+
[]
9495+
>>> " foo ".split(maxsplit=0)
9496+
['foo ']
9497+
94689498
str.splitlines(keepends=False)
94699499

94709500
Return a list of the lines in the string, breaking at line
@@ -11144,11 +11174,10 @@ class instance has a namespace implemented as a dictionary which is
1114411174
Flags for details on the semantics of each flags that might be
1114511175
present.
1114611176

11147-
Future feature declarations ("from __future__ import division") also
11148-
use bits in "co_flags" to indicate whether a code object was compiled
11149-
with a particular feature enabled: bit "0x2000" is set if the function
11150-
was compiled with future division enabled; bits "0x10" and "0x1000"
11151-
were used in earlier versions of Python.
11177+
Future feature declarations (for example, "from __future__ import
11178+
division") also use bits in "co_flags" to indicate whether a code
11179+
object was compiled with a particular feature enabled. See
11180+
"compiler_flag".
1115211181

1115311182
Other bits in "co_flags" are reserved for internal use.
1115411183

@@ -11496,8 +11525,15 @@ class dict(iterable, **kwargs)
1149611525
the keyword argument replaces the value from the positional
1149711526
argument.
1149811527

11499-
To illustrate, the following examples all return a dictionary equal
11500-
to "{"one": 1, "two": 2, "three": 3}":
11528+
Providing keyword arguments as in the first example only works for
11529+
keys that are valid Python identifiers. Otherwise, any valid keys
11530+
can be used.
11531+
11532+
Dictionaries compare equal if and only if they have the same "(key,
11533+
value)" pairs (regardless of ordering). Order comparisons (‘<’,
11534+
‘<=’, ‘>=’, ‘>’) raise "TypeError". To illustrate dictionary
11535+
creation and equality, the following examples all return a
11536+
dictionary equal to "{"one": 1, "two": 2, "three": 3}":
1150111537

1150211538
>>> a = dict(one=1, two=2, three=3)
1150311539
>>> b = {'one': 1, 'two': 2, 'three': 3}
@@ -11512,6 +11548,29 @@ class dict(iterable, **kwargs)
1151211548
keys that are valid Python identifiers. Otherwise, any valid keys
1151311549
can be used.
1151411550

11551+
Dictionaries preserve insertion order. Note that updating a key
11552+
does not affect the order. Keys added after deletion are inserted
11553+
at the end.
11554+
11555+
>>> d = {"one": 1, "two": 2, "three": 3, "four": 4}
11556+
>>> d
11557+
{'one': 1, 'two': 2, 'three': 3, 'four': 4}
11558+
>>> list(d)
11559+
['one', 'two', 'three', 'four']
11560+
>>> list(d.values())
11561+
[1, 2, 3, 4]
11562+
>>> d["one"] = 42
11563+
>>> d
11564+
{'one': 42, 'two': 2, 'three': 3, 'four': 4}
11565+
>>> del d["two"]
11566+
>>> d["two"] = None
11567+
>>> d
11568+
{'one': 42, 'three': 3, 'four': 4, 'two': None}
11569+
11570+
Changed in version 3.7: Dictionary order is guaranteed to be
11571+
insertion order. This behavior was an implementation detail of
11572+
CPython from 3.6.
11573+
1151511574
These are the operations that dictionaries support (and therefore,
1151611575
custom mapping types should support too):
1151711576

@@ -11682,33 +11741,6 @@ class dict(iterable, **kwargs)
1168211741

1168311742
Added in version 3.9.
1168411743

11685-
Dictionaries compare equal if and only if they have the same "(key,
11686-
value)" pairs (regardless of ordering). Order comparisons (‘<’,
11687-
‘<=’, ‘>=’, ‘>’) raise "TypeError".
11688-
11689-
Dictionaries preserve insertion order. Note that updating a key
11690-
does not affect the order. Keys added after deletion are inserted
11691-
at the end.
11692-
11693-
>>> d = {"one": 1, "two": 2, "three": 3, "four": 4}
11694-
>>> d
11695-
{'one': 1, 'two': 2, 'three': 3, 'four': 4}
11696-
>>> list(d)
11697-
['one', 'two', 'three', 'four']
11698-
>>> list(d.values())
11699-
[1, 2, 3, 4]
11700-
>>> d["one"] = 42
11701-
>>> d
11702-
{'one': 42, 'two': 2, 'three': 3, 'four': 4}
11703-
>>> del d["two"]
11704-
>>> d["two"] = None
11705-
>>> d
11706-
{'one': 42, 'three': 3, 'four': 4, 'two': None}
11707-
11708-
Changed in version 3.7: Dictionary order is guaranteed to be
11709-
insertion order. This behavior was an implementation detail of
11710-
CPython from 3.6.
11711-
1171211744
Dictionaries and dictionary views are reversible.
1171311745

1171411746
>>> d = {"one": 1, "two": 2, "three": 3, "four": 4}
@@ -12093,6 +12125,8 @@ class dict(iterable, **kwargs)
1209312125
| "s[i] = x" | item *i* of *s* is replaced by | |
1209412126
| | *x* | |
1209512127
+--------------------------------+----------------------------------+-----------------------+
12128+
| "del s[i]" | removes item *i* of *s* | |
12129+
+--------------------------------+----------------------------------+-----------------------+
1209612130
| "s[i:j] = t" | slice of *s* from *i* to *j* is | |
1209712131
| | replaced by the contents of the | |
1209812132
| | iterable *t* | |
@@ -12421,6 +12455,8 @@ class range(start, stop[, step])
1242112455
| "s[i] = x" | item *i* of *s* is replaced by | |
1242212456
| | *x* | |
1242312457
+--------------------------------+----------------------------------+-----------------------+
12458+
| "del s[i]" | removes item *i* of *s* | |
12459+
+--------------------------------+----------------------------------+-----------------------+
1242412460
| "s[i:j] = t" | slice of *s* from *i* to *j* is | |
1242512461
| | replaced by the contents of the | |
1242612462
| | iterable *t* | |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy