Skip to content

Commit 2e8d602

Browse files
Merge remote-tracking branch 'origin/main' into fix/smtplib_quoteaddr_malformed
2 parents 660ee12 + 9585f50 commit 2e8d602

141 files changed

Lines changed: 1786 additions & 823 deletions

File tree

Some content is hidden

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

.github/workflows/new-bugs-announce-notifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
// We need to truncate the body size, because the max size for
4545
// the whole payload is 16kb. We want to be safe and assume that
4646
// body can take up to ~8kb of space.
47-
body : issue.data.body.substring(0, 8000)
47+
body : (issue.data.body || "").substring(0, 8000)
4848
};
4949
5050
const data = {

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Tools/unicode/data/
137137
/config.status
138138
/config.status.lineno
139139
/.ccache
140-
/cross-build/
140+
/cross-build*/
141141
/jit_stencils*.h
142142
/platform
143143
/profile-clean-stamp

Doc/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ htmlhelp: build
8888
"build/htmlhelp/pydoc.hhp project file."
8989

9090
.PHONY: latex
91+
latex: _ensure-sphinxcontrib-svg2pdfconverter
9192
latex: BUILDER = latex
9293
latex: build
9394
@echo "Build finished; the LaTeX files are in build/latex."
@@ -231,7 +232,7 @@ dist-text:
231232
@echo "Build finished and archived!"
232233

233234
.PHONY: dist-pdf
234-
dist-pdf:
235+
dist-pdf: _ensure-sphinxcontrib-svg2pdfconverter
235236
# archive the A4 latex
236237
@echo "Building LaTeX (A4 paper)..."
237238
mkdir -p dist
@@ -292,6 +293,10 @@ _ensure-pre-commit:
292293
_ensure-sphinx-autobuild:
293294
$(MAKE) _ensure-package PACKAGE=sphinx-autobuild
294295

296+
.PHONY: _ensure-sphinxcontrib-svg2pdfconverter
297+
_ensure-sphinxcontrib-svg2pdfconverter:
298+
$(MAKE) _ensure-package PACKAGE=sphinxcontrib-svg2pdfconverter
299+
295300
.PHONY: check
296301
check: _ensure-pre-commit
297302
$(VENVDIR)/bin/python3 -m pre_commit run --all-files

Doc/c-api/arg.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,28 @@ API Functions
516516
}
517517
518518
519+
.. c:function:: int PyArg_ParseArray(PyObject *const *args, Py_ssize_t nargs, const char *format, ...)
520+
521+
Parse the parameters of a function that takes only array parameters into
522+
local variables (that is, a function using the :c:macro:`METH_FASTCALL`
523+
calling convention).
524+
Returns true on success; on failure, it returns false and raises the
525+
appropriate exception.
526+
527+
.. versionadded:: next
528+
529+
530+
.. c:function:: int PyArg_ParseArrayAndKeywords(PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames, const char *format, const char * const *kwlist, ...)
531+
532+
Parse the parameters of a function that takes both array and keyword
533+
parameters into local variables (that is, a function using the
534+
:c:macro:`METH_FASTCALL` ``|`` :c:macro:`METH_KEYWORDS` calling convention).
535+
Returns true on success; on failure, it returns false and raises the
536+
appropriate exception.
537+
538+
.. versionadded:: next
539+
540+
519541
.. c:function:: int PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, ...)
520542
521543
A simpler form of parameter retrieval which does not use a format string to

Doc/c-api/type.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ Type Objects
274274
Return the module object associated with the given type when the type was
275275
created using :c:func:`PyType_FromModuleAndSpec`.
276276
277+
The returned reference is :term:`borrowed <borrowed reference>` from *type*,
278+
and will be valid as long as you hold a reference to *type*.
279+
Do not release it with :c:func:`Py_DECREF` or similar.
280+
277281
If no module is associated with the given type, sets :py:class:`TypeError`
278282
and returns ``NULL``.
279283

Doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'linklint.ext',
4747
'notfound.extension',
4848
'sphinxext.opengraph',
49+
'sphinxcontrib.rsvgconverter',
4950
)
5051
for optional_ext in _OPTIONAL_EXTENSIONS:
5152
try:
@@ -556,6 +557,7 @@
556557
# mapping unique short aliases to a base URL and a prefix.
557558
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html
558559
extlinks = {
560+
"oss-fuzz": ("https://issues.oss-fuzz.com/issues/%s", "#%s"),
559561
"pypi": ("https://pypi.org/project/%s/", "%s"),
560562
"source": (SOURCE_URI, "%s"),
561563
}

Doc/data/refcounts.dat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,9 @@ PyType_GetFlags:PyTypeObject*:type:0:
24272427
PyType_GetName:PyObject*::+1:
24282428
PyType_GetName:PyTypeObject*:type:0:
24292429

2430+
PyType_GetModule:PyObject*::0:
2431+
PyType_GetModule:PyTypeObject*:type:0:
2432+
24302433
PyType_GetModuleByToken:PyObject*::+1:
24312434
PyType_GetModuleByToken:PyTypeObject*:type:0:
24322435
PyType_GetModuleByToken:PyModuleDef*:def::

0 commit comments

Comments
 (0)