Skip to content

Commit bc7a42d

Browse files
authored
Merge branch 'main' into email-bytes-generator-breakage
2 parents eb1cdc1 + eef47d5 commit bc7a42d

File tree

593 files changed

+9068
-4336
lines changed

Some content is hidden

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

593 files changed

+9068
-4336
lines changed

.azure-pipelines/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
coverage: false
33

4-
trigger: ['main', '3.10', '3.9', '3.8', '3.7']
4+
trigger: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
55

66
jobs:
77
- job: Prebuild

.azure-pipelines/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
coverage: false
33

4-
pr: ['main', '3.10', '3.9', '3.8', '3.7']
4+
pr: ['main', '3.11', '3.10', '3.9', '3.8', '3.7']
55

66
jobs:
77
- job: Prebuild

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Lib/ast.py @isidentical
9898
/Lib/unittest/test/testmock/* @cjw296
9999

100100
# SQLite 3
101-
**/*sqlite* @berkerpeksag
101+
**/*sqlite* @berkerpeksag @erlend-aasland
102102

103103
# subprocess
104104
/Lib/subprocess.py @gpshead

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ on:
88
push:
99
branches:
1010
- 'main'
11+
- '3.11'
1112
- '3.10'
1213
- '3.9'
1314
- '3.8'
1415
- '3.7'
1516
pull_request:
1617
branches:
1718
- 'main'
19+
- '3.11'
1820
- '3.10'
1921
- '3.9'
2022
- '3.8'

.github/workflows/build_msi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- 'main'
8+
- '3.11'
89
- '3.10'
910
- '3.9'
1011
- '3.8'
@@ -14,6 +15,7 @@ on:
1415
pull_request:
1516
branches:
1617
- 'main'
18+
- '3.11'
1719
- '3.10'
1820
- '3.9'
1921
- '3.8'

.github/workflows/doc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
#push:
66
# branches:
77
# - 'main'
8+
# - '3.11'
89
# - '3.10'
910
# - '3.9'
1011
# - '3.8'
@@ -14,6 +15,7 @@ on:
1415
pull_request:
1516
branches:
1617
- 'main'
18+
- '3.11'
1719
- '3.10'
1820
- '3.9'
1921
- '3.8'

.github/workflows/stale.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
repo-token: ${{ secrets.GITHUB_TOKEN }}
2121
stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity.'
2222
stale-pr-label: 'stale'
23-
days-before-stale: 30
23+
days-before-issue-stale: -1
24+
days-before-pr-stale: 30
2425
days-before-close: -1
2526
ascending: true
2627
operations-per-run: 120

Doc/c-api/bytearray.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ These macros trade safety for speed and they don't check pointers.
7777
7878
.. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
7979
80-
Macro version of :c:func:`PyByteArray_AsString`.
80+
Similar to :c:func:`PyByteArray_AsString`, but without error checking.
8181
8282
8383
.. c:function:: Py_ssize_t PyByteArray_GET_SIZE(PyObject *bytearray)
8484
85-
Macro version of :c:func:`PyByteArray_Size`.
85+
Similar to :c:func:`PyByteArray_Size`, but without error checking.

Doc/c-api/bytes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ called with a non-bytes parameter.
134134
135135
.. c:function:: Py_ssize_t PyBytes_GET_SIZE(PyObject *o)
136136
137-
Macro form of :c:func:`PyBytes_Size` but without error checking.
137+
Similar to :c:func:`PyBytes_Size`, but without error checking.
138138
139139
140140
.. c:function:: char* PyBytes_AsString(PyObject *o)
@@ -151,7 +151,7 @@ called with a non-bytes parameter.
151151
152152
.. c:function:: char* PyBytes_AS_STRING(PyObject *string)
153153
154-
Macro form of :c:func:`PyBytes_AsString` but without error checking.
154+
Similar to :c:func:`PyBytes_AsString`, but without error checking.
155155
156156
157157
.. c:function:: int PyBytes_AsStringAndSize(PyObject *obj, char **buffer, Py_ssize_t *length)

Doc/c-api/exceptions.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -909,11 +909,11 @@ the variables:
909909
+-----------------------------------------+---------------------------------+----------+
910910
| C Name | Python Name | Notes |
911911
+=========================================+=================================+==========+
912-
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | \(1) |
912+
| :c:data:`PyExc_BaseException` | :exc:`BaseException` | [1]_ |
913913
+-----------------------------------------+---------------------------------+----------+
914-
| :c:data:`PyExc_Exception` | :exc:`Exception` | \(1) |
914+
| :c:data:`PyExc_Exception` | :exc:`Exception` | [1]_ |
915915
+-----------------------------------------+---------------------------------+----------+
916-
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | \(1) |
916+
| :c:data:`PyExc_ArithmeticError` | :exc:`ArithmeticError` | [1]_ |
917917
+-----------------------------------------+---------------------------------+----------+
918918
| :c:data:`PyExc_AssertionError` | :exc:`AssertionError` | |
919919
+-----------------------------------------+---------------------------------+----------+
@@ -959,7 +959,7 @@ the variables:
959959
+-----------------------------------------+---------------------------------+----------+
960960
| :c:data:`PyExc_KeyboardInterrupt` | :exc:`KeyboardInterrupt` | |
961961
+-----------------------------------------+---------------------------------+----------+
962-
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | \(1) |
962+
| :c:data:`PyExc_LookupError` | :exc:`LookupError` | [1]_ |
963963
+-----------------------------------------+---------------------------------+----------+
964964
| :c:data:`PyExc_MemoryError` | :exc:`MemoryError` | |
965965
+-----------------------------------------+---------------------------------+----------+
@@ -971,7 +971,7 @@ the variables:
971971
+-----------------------------------------+---------------------------------+----------+
972972
| :c:data:`PyExc_NotImplementedError` | :exc:`NotImplementedError` | |
973973
+-----------------------------------------+---------------------------------+----------+
974-
| :c:data:`PyExc_OSError` | :exc:`OSError` | \(1) |
974+
| :c:data:`PyExc_OSError` | :exc:`OSError` | [1]_ |
975975
+-----------------------------------------+---------------------------------+----------+
976976
| :c:data:`PyExc_OverflowError` | :exc:`OverflowError` | |
977977
+-----------------------------------------+---------------------------------+----------+
@@ -981,7 +981,7 @@ the variables:
981981
+-----------------------------------------+---------------------------------+----------+
982982
| :c:data:`PyExc_RecursionError` | :exc:`RecursionError` | |
983983
+-----------------------------------------+---------------------------------+----------+
984-
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | \(2) |
984+
| :c:data:`PyExc_ReferenceError` | :exc:`ReferenceError` | |
985985
+-----------------------------------------+---------------------------------+----------+
986986
| :c:data:`PyExc_RuntimeError` | :exc:`RuntimeError` | |
987987
+-----------------------------------------+---------------------------------+----------+
@@ -1046,18 +1046,18 @@ These are compatibility aliases to :c:data:`PyExc_OSError`:
10461046
+-------------------------------------+----------+
10471047
| :c:data:`PyExc_IOError` | |
10481048
+-------------------------------------+----------+
1049-
| :c:data:`PyExc_WindowsError` | \(3) |
1049+
| :c:data:`PyExc_WindowsError` | [2]_ |
10501050
+-------------------------------------+----------+
10511051
10521052
.. versionchanged:: 3.3
10531053
These aliases used to be separate exception types.
10541054
10551055
Notes:
10561056
1057-
(1)
1057+
.. [1]
10581058
This is a base class for other standard exceptions.
10591059
1060-
(2)
1060+
.. [2]
10611061
Only defined on Windows; protect code that uses this by testing that the
10621062
preprocessor macro ``MS_WINDOWS`` is defined.
10631063
@@ -1087,7 +1087,7 @@ the variables:
10871087
+------------------------------------------+---------------------------------+----------+
10881088
| C Name | Python Name | Notes |
10891089
+==========================================+=================================+==========+
1090-
| :c:data:`PyExc_Warning` | :exc:`Warning` | \(1) |
1090+
| :c:data:`PyExc_Warning` | :exc:`Warning` | [3]_ |
10911091
+------------------------------------------+---------------------------------+----------+
10921092
| :c:data:`PyExc_BytesWarning` | :exc:`BytesWarning` | |
10931093
+------------------------------------------+---------------------------------+----------+
@@ -1115,5 +1115,5 @@ the variables:
11151115
11161116
Notes:
11171117
1118-
(1)
1118+
.. [3]
11191119
This is a base class for other standard warning categories.

Doc/c-api/init.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Process-wide parameters
549549
.. index:: single: version (in module sys)
550550
551551
The first word (up to the first space character) is the current Python version;
552-
the first three characters are the major and minor version separated by a
552+
the first characters are the major and minor version separated by a
553553
period. The returned string points into static storage; the caller should not
554554
modify its value. The value is available to Python code as :data:`sys.version`.
555555
@@ -616,6 +616,11 @@ Process-wide parameters
616616
single: Py_FatalError()
617617
single: argv (in module sys)
618618
619+
This API is kept for backward compatibility: setting
620+
:c:member:`PyConfig.argv`, :c:member:`PyConfig.parse_argv` and
621+
:c:member:`PyConfig.safe_path` should be used instead, see :ref:`Python
622+
Initialization Configuration <init-config>`.
623+
619624
Set :data:`sys.argv` based on *argc* and *argv*. These parameters are
620625
similar to those passed to the program's :c:func:`main` function with the
621626
difference that the first entry should refer to the script file to be
@@ -659,9 +664,15 @@ Process-wide parameters
659664
.. XXX impl. doesn't seem consistent in allowing ``0``/``NULL`` for the params;
660665
check w/ Guido.
661666
667+
.. deprecated:: 3.11
668+
662669

663670
.. c:function:: void PySys_SetArgv(int argc, wchar_t **argv)
664671
672+
This API is kept for backward compatibility: setting
673+
:c:member:`PyConfig.argv` and :c:member:`PyConfig.parse_argv` should be used
674+
instead, see :ref:`Python Initialization Configuration <init-config>`.
675+
665676
This function works like :c:func:`PySys_SetArgvEx` with *updatepath* set
666677
to ``1`` unless the :program:`python` interpreter was started with the
667678
:option:`-I`.
@@ -674,6 +685,8 @@ Process-wide parameters
674685
675686
.. versionchanged:: 3.4 The *updatepath* value depends on :option:`-I`.
676687
688+
.. deprecated:: 3.11
689+
677690
678691
.. c:function:: void Py_SetPythonHome(const wchar_t *home)
679692

0 commit comments

Comments
 (0)