Skip to content

Commit 141cf5d

Browse files
authored
Merge branch 'main' into has_header_false_neg_fix
2 parents 6d139a6 + 5cdd5ba commit 141cf5d

File tree

549 files changed

+29441
-31062
lines changed

Some content is hidden

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

549 files changed

+29441
-31062
lines changed

.azure-pipelines/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
variables:
5858
testRunTitle: '$(build.sourceBranchName)-linux'
5959
testRunPlatform: linux
60-
openssl_version: 1.1.1t
60+
openssl_version: 1.1.1u
6161

6262
steps:
6363
- template: ./posix-steps.yml
@@ -83,7 +83,7 @@ jobs:
8383
variables:
8484
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8585
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1t
86+
openssl_version: 1.1.1u
8787

8888
steps:
8989
- template: ./posix-steps.yml

.azure-pipelines/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
variables:
5858
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
5959
testRunPlatform: linux
60-
openssl_version: 1.1.1t
60+
openssl_version: 1.1.1u
6161

6262
steps:
6363
- template: ./posix-steps.yml
@@ -83,7 +83,7 @@ jobs:
8383
variables:
8484
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8585
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1t
86+
openssl_version: 1.1.1u
8787

8888
steps:
8989
- template: ./posix-steps.yml

.github/CODEOWNERS

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Python/traceback.c @iritkatriel
6868
/Tools/build/parse_html5_entities.py @ezio-melotti
6969

7070
# Import (including importlib).
71-
**/*import* @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
71+
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw
7272
**/*importlib/resources/* @jaraco @warsaw @FFY00
7373
**/importlib/metadata/* @jaraco @warsaw
7474

@@ -118,6 +118,12 @@ Lib/ast.py @isidentical
118118
/Lib/test/test_subprocess.py @gpshead
119119
/Modules/*subprocess* @gpshead
120120

121+
# Limited C API & stable ABI
122+
Tools/build/stable_abi.py @encukou
123+
Misc/stable_abi.toml @encukou
124+
Doc/data/*.abi @encukou
125+
Doc/c-api/stable.rst @encukou
126+
121127
# Windows
122128
/PC/ @python/windows-team
123129
/PCbuild/ @python/windows-team

.github/workflows/build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ jobs:
136136
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
137137
- name: Configure ccache action
138138
uses: hendrikmuhs/[email protected]
139-
- name: Check Autoconf version 2.69 and aclocal 1.16.3
139+
- name: Check Autoconf and aclocal versions
140140
run: |
141-
grep "Generated by GNU Autoconf 2.69" configure
142-
grep "aclocal 1.16.3" aclocal.m4
141+
grep "Generated by GNU Autoconf 2.71" configure
142+
grep "aclocal 1.16.4" aclocal.m4
143143
grep -q "runstatedir" configure
144144
grep -q "PKG_PROG_PKG_CONFIG" aclocal.m4
145145
- name: Configure CPython
@@ -235,9 +235,8 @@ jobs:
235235
run: brew install pkg-config [email protected] xz gdbm tcl-tk
236236
- name: Configure CPython
237237
run: |
238-
CFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
239-
LDFLAGS="-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" \
240-
PKG_CONFIG_PATH="$(brew --prefix tcl-tk)/lib/pkgconfig" \
238+
GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
239+
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
241240
./configure \
242241
--config-cache \
243242
--with-pydebug \
@@ -257,7 +256,7 @@ jobs:
257256
needs: check_source
258257
if: needs.check_source.outputs.run_tests == 'true'
259258
env:
260-
OPENSSL_VER: 1.1.1t
259+
OPENSSL_VER: 1.1.1u
261260
PYTHONSTRICTEXTENSIONBUILD: 1
262261
steps:
263262
- uses: actions/checkout@v3
@@ -326,7 +325,7 @@ jobs:
326325
strategy:
327326
fail-fast: false
328327
matrix:
329-
openssl_ver: [1.1.1t, 3.0.8, 3.1.0-beta1]
328+
openssl_ver: [1.1.1u, 3.0.9, 3.1.1]
330329
env:
331330
OPENSSL_VER: ${{ matrix.openssl_ver }}
332331
MULTISSL_DIR: ${{ github.workspace }}/multissl
@@ -378,7 +377,7 @@ jobs:
378377
needs: check_source
379378
if: needs.check_source.outputs.run_tests == 'true' && needs.check_source.outputs.run_hypothesis == 'true'
380379
env:
381-
OPENSSL_VER: 1.1.1t
380+
OPENSSL_VER: 1.1.1u
382381
PYTHONSTRICTEXTENSIONBUILD: 1
383382
steps:
384383
- uses: actions/checkout@v3
@@ -487,7 +486,7 @@ jobs:
487486
needs: check_source
488487
if: needs.check_source.outputs.run_tests == 'true'
489488
env:
490-
OPENSSL_VER: 1.1.1t
489+
OPENSSL_VER: 1.1.1u
491490
PYTHONSTRICTEXTENSIONBUILD: 1
492491
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
493492
steps:

Doc/c-api/abstract.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ but whose items have not been set to some non-\ ``NULL`` value yet.
2424
mapping.rst
2525
iter.rst
2626
buffer.rst
27-
objbuffer.rst

Doc/c-api/arg.rst

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -439,16 +439,24 @@ API Functions
439439
.. versionadded:: 3.2
440440
441441
442-
.. XXX deprecated, will be removed
443442
.. c:function:: int PyArg_Parse(PyObject *args, const char *format, ...)
444443
445-
Function used to deconstruct the argument lists of "old-style" functions ---
446-
these are functions which use the :const:`METH_OLDARGS` parameter parsing
447-
method, which has been removed in Python 3. This is not recommended for use
448-
in parameter parsing in new code, and most code in the standard interpreter
449-
has been modified to no longer use this for that purpose. It does remain a
450-
convenient way to decompose other tuples, however, and may continue to be
451-
used for that purpose.
444+
Parse the parameter of a function that takes a single positional parameter
445+
into a local variable. Returns true on success; on failure, it returns
446+
false and raises the appropriate exception.
447+
448+
Example::
449+
450+
// Function using METH_O calling convention
451+
static PyObject*
452+
my_function(PyObject *module, PyObject *arg)
453+
{
454+
int value;
455+
if (!PyArg_Parse(arg, "i:my_function", &value)) {
456+
return NULL;
457+
}
458+
// ... use value ...
459+
}
452460
453461
454462
.. c:function:: int PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, ...)

Doc/c-api/exceptions.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ Printing and clearing
6060
Call this function **only** when the error indicator is set. Otherwise it
6161
will cause a fatal error!
6262
63-
If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`,
64-
:data:`sys.last_value` and :data:`sys.last_traceback` will be set to the
65-
type, value and traceback of the printed exception, respectively.
63+
If *set_sys_last_vars* is nonzero, the variable :data:`sys.last_exc` is
64+
set to the printed exception. For backwards compatibility, the
65+
deprecated variables :data:`sys.last_type`, :data:`sys.last_value` and
66+
:data:`sys.last_traceback` are also set to the type, value and traceback
67+
of this exception, respectively.
68+
69+
.. versionchanged:: 3.12
70+
The setting of :data:`sys.last_exc` was added.
6671
6772
6873
.. c:function:: void PyErr_Print()
@@ -882,15 +887,15 @@ because the :ref:`call protocol <call>` takes care of recursion handling.
882887
depth limit.
883888
884889
.. versionchanged:: 3.9
885-
This function is now also available in the limited API.
890+
This function is now also available in the :ref:`limited API <limited-c-api>`.
886891
887892
.. c:function:: void Py_LeaveRecursiveCall(void)
888893
889894
Ends a :c:func:`Py_EnterRecursiveCall`. Must be called once for each
890895
*successful* invocation of :c:func:`Py_EnterRecursiveCall`.
891896
892897
.. versionchanged:: 3.9
893-
This function is now also available in the limited API.
898+
This function is now also available in the :ref:`limited API <limited-c-api>`.
894899
895900
Properly implementing :c:member:`~PyTypeObject.tp_repr` for container types requires
896901
special recursion handling. In addition to protecting the stack,

Doc/c-api/import.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Importing Modules
3838
to per-module locks for most purposes, so this function's special
3939
behaviour isn't needed anymore.
4040
41+
.. deprecated-removed:: 3.13 3.15
42+
Use :c:func:`PyImport_ImportModule` instead.
43+
4144
4245
.. c:function:: PyObject* PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
4346

0 commit comments

Comments
 (0)