Skip to content

Commit 4e66535

Browse files
committed
Python 3.13.6
1 parent 5c5574b commit 4e66535

File tree

66 files changed

+701
-172
lines changed

Some content is hidden

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

66 files changed

+701
-172
lines changed

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 5
21+
#define PY_MICRO_VERSION 6
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.5+"
26+
#define PY_VERSION "3.13.6"
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: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Autogenerated by Sphinx on Wed Jun 11 17:36:53 2025
1+
# Autogenerated by Sphinx on Wed Aug 6 15:05:15 2025
22
# as part of the release process.
33

44
topics = {
@@ -9055,7 +9055,13 @@ class is used in a class pattern with positional arguments, each
90559055

90569056
For performance reasons, the value of *errors* is not checked for
90579057
validity unless an encoding error actually occurs, Python
9058-
Development Mode is enabled or a debug build is used.
9058+
Development Mode is enabled or a debug build is used. For example:
9059+
9060+
>>> encoded_str_to_bytes = 'Python'.encode()
9061+
>>> type(encoded_str_to_bytes)
9062+
<class 'bytes'>
9063+
>>> encoded_str_to_bytes
9064+
b'Python'
90599065

90609066
Changed in version 3.1: Added support for keyword arguments.
90619067

@@ -9068,6 +9074,19 @@ class is used in a class pattern with positional arguments, each
90689074
otherwise return "False". *suffix* can also be a tuple of suffixes
90699075
to look for. With optional *start*, test beginning at that
90709076
position. With optional *end*, stop comparing at that position.
9077+
Using *start* and *end* is equivalent to
9078+
"str[start:end].endswith(suffix)". For example:
9079+
9080+
>>> 'Python'.endswith('on')
9081+
True
9082+
>>> 'a tuple of suffixes'.endswith(('at', 'in'))
9083+
False
9084+
>>> 'a tuple of suffixes'.endswith(('at', 'es'))
9085+
True
9086+
>>> 'Python is amazing'.endswith('is', 0, 9)
9087+
True
9088+
9089+
See also "startswith()" and "removesuffix()".
90719090

90729091
str.expandtabs(tabsize=8)
90739092

@@ -9083,12 +9102,15 @@ class is used in a class pattern with positional arguments, each
90839102
("\n") or return ("\r"), it is copied and the current column is
90849103
reset to zero. Any other character is copied unchanged and the
90859104
current column is incremented by one regardless of how the
9086-
character is represented when printed.
9105+
character is represented when printed. For example:
90879106

9088-
>>> '01\t012\t0123\t01234'.expandtabs()
9089-
'01 012 0123 01234'
9090-
>>> '01\t012\t0123\t01234'.expandtabs(4)
9091-
'01 012 0123 01234'
9107+
>>> '01\t012\t0123\t01234'.expandtabs()
9108+
'01 012 0123 01234'
9109+
>>> '01\t012\t0123\t01234'.expandtabs(4)
9110+
'01 012 0123 01234'
9111+
>>> print('01\t012\n0123\t01234'.expandtabs(4))
9112+
01 012
9113+
0123 01234
90929114

90939115
str.find(sub[, start[, end]])
90949116

@@ -12133,7 +12155,9 @@ class dict(iterable, **kwargs)
1213312155
| | replaced by the contents of the | |
1213412156
| | iterable *t* | |
1213512157
+--------------------------------+----------------------------------+-----------------------+
12136-
| "del s[i:j]" | same as "s[i:j] = []" | |
12158+
| "del s[i:j]" | removes the elements of "s[i:j]" | |
12159+
| | from the list (same as "s[i:j] = | |
12160+
| | []") | |
1213712161
+--------------------------------+----------------------------------+-----------------------+
1213812162
| "s[i:j:k] = t" | the elements of "s[i:j:k]" are | (1) |
1213912163
| | replaced by those of *t* | |
@@ -12463,7 +12487,9 @@ class range(start, stop[, step])
1246312487
| | replaced by the contents of the | |
1246412488
| | iterable *t* | |
1246512489
+--------------------------------+----------------------------------+-----------------------+
12466-
| "del s[i:j]" | same as "s[i:j] = []" | |
12490+
| "del s[i:j]" | removes the elements of "s[i:j]" | |
12491+
| | from the list (same as "s[i:j] = | |
12492+
| | []") | |
1246712493
+--------------------------------+----------------------------------+-----------------------+
1246812494
| "s[i:j:k] = t" | the elements of "s[i:j:k]" are | (1) |
1246912495
| | replaced by those of *t* | |

0 commit comments

Comments
 (0)