8000 Merge tag 'v3.8.10' into 3.8 · python/cpython@705c615 · GitHub
[go: up one dir, main page]

Skip to content

Commit 705c615

Browse files
committed
Merge tag 'v3.8.10' into 3.8
Python 3.8.10
2 parents 8ab272f + 3d8993a commit 705c615

File tree

47 files changed

+498
-125
lines changed

Some content is hidden

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

47 files changed

+498
-125
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 8
21-
#define PY_MICRO_VERSION 9
21+
#define PY_MICRO_VERSION 10
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.8.9+"
26+
#define PY_VERSION "3.8.10"
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: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Fri Apr 2 12:30:35 2021
2+
# Autogenerated by Sphinx on Mon May 3 11:26:22 2021
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -987,9 +987,9 @@
987987
'\n'
988988
'For instance bindings, the precedence of descriptor '
989989
'invocation depends\n'
990-
'on the which descriptor methods are defined. A '
991-
'descriptor can define\n'
992-
'any combination of "__get__()", "__set__()" and '
990+
'on which descriptor methods are defined. A descriptor '
991+
'can define any\n'
992+
'combination of "__get__()", "__set__()" and '
993993
'"__delete__()". If it\n'
994994
'does not define "__get__()", then accessing the '
995995
'attribute will return\n'
@@ -2746,7 +2746,7 @@
27462746
'Calls.\n'
27472747
'A function call always assigns values to all parameters '
27482748
'mentioned in\n'
2749-
'the parameter list, either from position arguments, from '
2749+
'the parameter list, either from positional arguments, from '
27502750
'keyword\n'
27512751
'arguments, or from default values. If the form “"*identifier"” '
27522752
'is\n'
@@ -2758,8 +2758,14 @@
27582758
'new\n'
27592759
'empty mapping of the same type. Parameters after “"*"” or\n'
27602760
'“"*identifier"” are keyword-only parameters and may only be '
2761-
'passed\n'
2762-
'used keyword arguments.\n'
2761+
'passed by\n'
2762+
'keyword arguments. Parameters before “"/"” are positional-only\n'
2763+
'parameters and may only be passed by positional arguments.\n'
2764+
'\n'
2765+
'Changed in version 3.8: The "/" function parameter syntax may be '
2766+
'used\n'
2767+
'to indicate positional-only parameters. See **PEP 570** for '
2768+
'details.\n'
27632769
'\n'
27642770
'Parameters may have an *annotation* of the form “": '
2765< F438 /code>2771
'expression"”\n'
@@ -5201,7 +5207,7 @@
52015207
'character that can be any character and defaults to a space '
52025208
'if\n'
52035209
'omitted. It is not possible to use a literal curly brace '
5204-
'("{"” or\n'
5210+
'("{"” or\n'
52055211
'“"}"”) as the *fill* character in a formatted string '
52065212
'literal or when\n'
52075213
'using the "str.format()" method. However, it is possible '
@@ -5874,7 +5880,7 @@
58745880
'Calls.\n'
58755881
'A function call always assigns values to all parameters '
58765882
'mentioned in\n'
5877-
'the parameter list, either from position arguments, from '
5883+
'the parameter list, either from positional arguments, from '
58785884
'keyword\n'
58795885
'arguments, or from default values. If the form “"*identifier"” '
58805886
'is\n'
@@ -5886,8 +5892,14 @@
58865892
'new\n'
58875893
'empty mapping of the same type. Parameters after “"*"” or\n'
58885894
'“"*identifier"” are keyword-only parameters and may only be '
5889-
'passed\n'
5890-
'used keyword arguments.\n'
5895+
'passed by\n'
5896+
'keyword arguments. Parameters before “"/"” are positional-only\n'
5897+
'parameters and may only be passed by positional arguments.\n'
5898+
'\n'
5899+
'Changed in version 3.8: The "/" function parameter syntax may be '
5900+
'used\n'
5901+
'to indicate positional-only parameters. See **PEP 570** for '
5902+
'details.\n'
58915903
'\n'
58925904
'Parameters may have an *annotation* of the form “": '
58935905
'expression"”\n'
@@ -6875,7 +6887,7 @@
68756887
'\n'
68766888
'Note that numeric literals do not include a sign; a phrase like '
68776889
'"-1"\n'
6878-
'is actually an expression composed of the unary operator ‘"-" '
6890+
'is actually an expression composed of the unary operator ‘"-" '
68796891
'and the\n'
68806892
'literal "1".\n',
68816893
'numeric-types': 'Emulating numeric types\n'
@@ -7473,12 +7485,18 @@
74737485
'\n'
74747486
'The "from" clause is used for exception chaining: if given, the '
74757487
'second\n'
7476-
'*expression* must be another exception class or instance, which '
7477-
'will\n'
7478-
'then be attached to the raised exception as the "__cause__" '
7479-
'attribute\n'
7480-
'(which is writable). If the raised exception is not handled, both\n'
7481-
'exceptions will be printed:\n'
7488+
'*expression* must be another exception class or instance. If the\n'
7489+
'second expression is an exception instance, it will be attached to '
7490+
'the\n'
7491+
'raised exception as the "__cause__" attribute (which is writable). '
7492+
'If\n'
7493+
'the expression is an exception class, the class will be '
7494+
'instantiated\n'
7495+
'and the resulting exception instance will be attached to the '
7496+
'raised\n'
7497+
'exception as the "__cause__" attribute. If the raised exception is '
7498+
'not\n'
7499+
'handled, both exceptions will be printed:\n'
74827500
'\n'
74837501
' >>> try:\n'
74847502
' ... print(1 / 0)\n'
@@ -8820,10 +8838,10 @@
88208838
'\n'
88218839
'For instance bindings, the precedence of descriptor '
88228840
'invocation depends\n'
8823-
'on the which descriptor methods are defined. A descriptor '
8824-
'can define\n'
8825-
'any combination of "__get__()", "__set__()" and '
8826-
'"__delete__()". If it\n'
8841+
'on which descriptor methods are defined. A descriptor can '
8842+
'define any\n'
8843+
'combination of "__get__()", "__set__()" and "__delete__()". '
8844+
'If it\n'
88278845
'does not define "__get__()", then accessing the attribute '
88288846
'will return\n'
88298847
'the descriptor object itself unless there is a value in the '
@@ -10049,7 +10067,7 @@
1004910067
'*start* and\n'
1005010068
' *end* are interpreted as in slice notation.\n'
1005110069
'\n'
10052-
'str.encode(encoding="utf-8", errors="strict")\n'
10070+
"str.encode(encoding='utf-8', errors='strict')\n"
1005310071
'\n'
1005410072
' Return an encoded version of the string as a bytes '
1005510073
'object. Default\n'
@@ -10496,7 +10514,7 @@
1049610514
'followed by\n'
1049710515
' the string itself.\n'
1049810516
'\n'
10499-
'str.rsplit(sep=None, maxsplit=-1)\n'
10517+
'str.rsplit(sep=None, maxsplit=- 1)\n'
1050010518
'\n'
1050110519
' Return a list of the words in the string, using *sep* '
1050210520
'as the\n'
@@ -10527,7 +10545,7 @@
1052710545
" >>> 'mississippi'.rstrip('ipz')\n"
1052810546
" 'mississ'\n"
1052910547
'\n'
10530-
'str.split(sep=None, maxsplit=-1)\n'
10548+
'str.split(sep=None, maxsplit=- 1)\n'
1053110549
'\n'
1053210550
' Return a list of the words in the string, using *sep* '
1053310551
'as the\n'
@@ -11485,7 +11503,7 @@
1148511503
' points. All the code points in the range "U+0000 - '
1148611504
'U+10FFFF"\n'
1148711505
' can be represented in a string. Python doesn’t have a '
11488-
'"char"\n'
11506+
'*char*\n'
1148911507
' type; instead, every code point in the string is '
1149011508
'represented\n'
1149111509
' as a string object with length "1". The built-in '

0 commit comments

Comments
 (0)
0