]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 years agoDoc: amend ssl.PROTOCOL_SSLv2 and ssl.PROTOCOL_SSLv3 wording (GH-92634)
Miss Islington (bot) [Thu, 19 May 2022 09:37:57 +0000 (02:37 -0700)] 
Doc: amend ssl.PROTOCOL_SSLv2 and ssl.PROTOCOL_SSLv3 wording (GH-92634)

(cherry picked from commit 41638967a0e0bf1114c9bba9454d081605b49009)

Co-authored-by: Jan Brasna <1784648+janbrasna@users.noreply.github.com>
3 years agoInclude ``asyncio.Barrier`` in 3.11 Whats New (GH-92927)
Miss Islington (bot) [Thu, 19 May 2022 08:59:49 +0000 (01:59 -0700)] 
Include ``asyncio.Barrier`` in 3.11 Whats New (GH-92927)

(cherry picked from commit 60ee61571a60bcf4e40a4074e8db356b5af793c1)

Co-authored-by: Duprat <yduprat@gmail.com>
3 years agogh-87901: Remove the encoding argument from os.popen (GH-92836)
Miss Islington (bot) [Thu, 19 May 2022 03:12:47 +0000 (20:12 -0700)] 
gh-87901: Remove the encoding argument from os.popen (GH-92836)

(cherry picked from commit 96f65835f8f66d058b444e0b4e436af45e2902f7)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
3 years agogh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (GH-92814)
Miss Islington (bot) [Wed, 18 May 2022 21:25:25 +0000 (14:25 -0700)] 
gh-92812: Align ArgumentParser.add_subparsers() docs with argument spec (GH-92814)

(cherry picked from commit f2d994da104eed38f9e110e7d8f37fa6d845b207)

Co-authored-by: 180909 <734461790@qq.com>
3 years agogh-92780: Improve sqlite3.Connection.create_collation docs (GH-92790)
Miss Islington (bot) [Wed, 18 May 2022 11:58:57 +0000 (04:58 -0700)] 
gh-92780: Improve sqlite3.Connection.create_collation docs (GH-92790)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 7ee19e27150a72eec9e6a076792e3c3ae8bcffbd)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-91755: Document Py_IncRef and Py_DecRef as C functions (GH-91805)
Miss Islington (bot) [Wed, 18 May 2022 09:00:22 +0000 (02:00 -0700)] 
gh-91755: Document Py_IncRef and Py_DecRef as C functions (GH-91805)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 58a3d28039863b014f57a1ac93b51e20920ebe7b)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
3 years agobpo-40838: document `getdoc`, `getmodule`, `getsourcefile` in `inspect` returns ...
Miss Islington (bot) [Wed, 18 May 2022 01:41:55 +0000 (18:41 -0700)] 
bpo-40838: document `getdoc`, `getmodule`, `getsourcefile` in `inspect` returns `None` (GH-30575)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit b86d783a4eff96306f315acf9a6f1aca85d47fc3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
3 years agogh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)
Miss Islington (bot) [Tue, 17 May 2022 22:59:29 +0000 (15:59 -0700)] 
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)

(cherry picked from commit 33880b4b1c60f54aa9e7fa02698a3c82eafe3dc7)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years agogh-89898: Fix test_threading.test_args_argument() (GH-92885)
Miss Islington (bot) [Tue, 17 May 2022 22:45:56 +0000 (15:45 -0700)] 
gh-89898: Fix test_threading.test_args_argument() (GH-92885)

Join the thread to not leak threads running in the background to the
next test.

Fix the following warning on the "AMD64 FreeBSD Shared 3.11"
buildbot:

test_args_argument (test.test_threading.ThreadTests.test_args_argument) ...
Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2)
Warning -- Dangling thread: <_MainThread(MainThread, started 35026161664)>
Warning -- Dangling thread: <Thread(Thread-134 (<lambda>), started 35314998016)>
ok
(cherry picked from commit 970efae274538f9910e8f9b31bc890f1b7666b0f)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-89653: PEP 670: Fix PyUnicode_READ() cast (GH-92872)
Miss Islington (bot) [Tue, 17 May 2022 17:45:55 +0000 (10:45 -0700)] 
gh-89653: PEP 670: Fix PyUnicode_READ() cast (GH-92872)

_Py_CAST() cannot be used with a constant type: use _Py_STATIC_CAST()
instead.
(cherry picked from commit e6fd7992a92879103215b3e9f218fe07212af9b1)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years ago[3.11] gh-92530: Fix an issue that occurred after interrupting threading.Condition...
Miss Islington (bot) [Tue, 17 May 2022 16:45:40 +0000 (09:45 -0700)] 
[3.11] gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) (GH-92829)

If Condition.notify() was interrupted just after it released the waiter lock,
but before removing it from the queue, the following calls of notify() failed
with RuntimeError: cannot release un-acquired lock.
(cherry picked from commit 70af994fee7c0850ae859727d9468a5f29375a38)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years agogh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)
Miss Islington (bot) [Tue, 17 May 2022 16:44:23 +0000 (09:44 -0700)] 
gh-81548: Clarify the deprecation of octal sequences affect byte strings (GH-92643)

Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 0d8500c739dc5ea926b2ec1ec02e400738225dac)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agoFix NULL check in test_type_from_ephemeral_spec in_testcapimodule.c (GH-92863)
Miss Islington (bot) [Tue, 17 May 2022 15:47:50 +0000 (08:47 -0700)] 
Fix NULL check in test_type_from_ephemeral_spec in_testcapimodule.c (GH-92863)

(cherry picked from commit 524f03c08ca6688785c0fe99d8f2b385bf92e58f)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
3 years agoFix NULL test in _testinternalcapi (GH-92861)
Miss Islington (bot) [Tue, 17 May 2022 01:57:42 +0000 (18:57 -0700)] 
Fix NULL test in _testinternalcapi (GH-92861)

(cherry picked from commit 702e0da000bf28aa20cb7f3893b575d977506495)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
3 years agore docs: fix source code link (GH-92819)
Miss Islington (bot) [Tue, 17 May 2022 00:21:50 +0000 (17:21 -0700)] 
re docs: fix source code link (GH-92819)

(cherry picked from commit bd304612980edd16c568ea8a5b30795f048bbf24)

Co-authored-by: 谭九鼎 <109224573@qq.com>
3 years ago[3.11] gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846) (GH...
Christian Heimes [Mon, 16 May 2022 18:15:56 +0000 (20:15 +0200)] 
[3.11] gh-90473: Skip tests that don't apply to Emscripten and WASI (GH-92846) (GH-92851)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-92671: Don't omit parentheses when unparsing empty tuples (GH-92673)
Miss Islington (bot) [Mon, 16 May 2022 13:01:34 +0000 (06:01 -0700)] 
gh-92671: Don't omit parentheses when unparsing empty tuples (GH-92673)

(cherry picked from commit f6fd8aac13714ce17650eb4a648d5c08f0be53b4)

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
3 years agoSpeedup: build docs in parallel (GH-92733)
Miss Islington (bot) [Mon, 16 May 2022 12:17:20 +0000 (05:17 -0700)] 
Speedup: build docs in parallel (GH-92733)

(cherry picked from commit a487623c6b784847a8a1e47b4597b0ae2b8def87)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
3 years agogh-92781: Avoid mixing declarations and code in C API (#92783) (#92813)
Victor Stinner [Mon, 16 May 2022 11:19:52 +0000 (13:19 +0200)] 
gh-92781: Avoid mixing declarations and code in C API (#92783) (#92813)

Avoid mixing declarations and code in the C API to fix the compiler
warning: "ISO C90 forbids mixed declarations and code"
[-Werror=declaration-after-statement].

(cherry picked from commit 90e72300730189c4a48529baaad9b0005d40731c)

3 years agogh-90473: WASI: Mark tests that require os.pipe() (GH-92837)
Miss Islington (bot) [Mon, 16 May 2022 08:04:01 +0000 (01:04 -0700)] 
gh-90473: WASI: Mark tests that require os.pipe() (GH-92837)

(cherry picked from commit 730902c0ad997462d2567e48def5352fe75c0e2c)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-87670: Add web.archive redirects from effbot (GH-92816)
Miss Islington (bot) [Mon, 16 May 2022 06:26:31 +0000 (23:26 -0700)] 
gh-87670: Add web.archive redirects from effbot (GH-92816)

(cherry picked from commit 3ed1cae9ed9d1f0dd9d68da4b30b731fdf6be768)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years ago[3.11] Restore default role check in `make check`. (GH-92290) (#92821)
Ezio Melotti [Sun, 15 May 2022 15:55:12 +0000 (17:55 +0200)] 
[3.11] Restore default role check in `make check`. (GH-92290) (#92821)

* Restore default role check in `make check`.

* Options first, then files.

* Update `make.bat` too.

* Add a comment explaining the extra options.

* No reason to ignore the README.rst.

* Enable default-role check in sphinx-lint.

Co-authored-by: Julien Palard <julien@palard.fr>
* Update sphinx-lint default-role check.

* Fix use of the default role in the docs.

* Update make.bat to check for the default role too.

* Fix comment in make.bat.

Co-authored-by: Julien Palard <julien@palard.fr>
(cherry picked from commit 953ab0795243900ccccaaca069d932730a86fc20)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
3 years agogh-90473: Fail subprocess early on Emscripten/WASI (GH-92802)
Miss Islington (bot) [Sat, 14 May 2022 18:47:17 +0000 (11:47 -0700)] 
gh-90473: Fail subprocess early on Emscripten/WASI (GH-92802)

(cherry picked from commit db0b455ff482df68f331411bf22b3e5829398280)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agoCheck result of utc_to_seconds and skip fold probe in pure Python (GH-91582)
Miss Islington (bot) [Sat, 14 May 2022 14:59:52 +0000 (07:59 -0700)] 
Check result of utc_to_seconds and skip fold probe in pure Python (GH-91582)

The `utc_to_seconds` call can fail, here's a minimal reproducer on
Linux:

TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)"

The old behavior still raised an error in a similar way, but only
because subsequent calculations happened to fail as well. Better to fail
fast.

This also refactors the tests to split out the `fromtimestamp` and
`utcfromtimestamp` tests, and to get us closer to the actual desired
limits of the functions. As part of this, we also changed the way we
detect platforms where the same limits don't necessarily apply (e.g.
Windows).

As part of refactoring the tests to hit this condition explicitly (even
though the user-facing behvior doesn't change in any way we plan to
guarantee), I noticed that there was a difference in the places that
`datetime.utcfromtimestamp` fails in the C and pure Python versions, which
was fixed by skipping the "probe for fold" logic for UTC specifically —
since UTC doesn't have any folds or gaps, we were never going to find a
fold value anyway. This should prevent some failures in the pure python
`utcfromtimestamp` method on timestamps close to 0001-01-01.

There are two separate news entries for this because one is a
potentially user-facing change, the other is an internal code
correctness change that, if anything, changes some error messages. The
two happen to be coupled because of the test refactoring, but they are
probably best thought of as independent changes.

Fixes GH-91581
(cherry picked from commit 83c0247d47b99f4571e35ea95361436e1d2a61cd)

Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
3 years agoGH-92804: Fix memory leak in memoryview iterator (gh-92805)
Miss Islington (bot) [Sat, 14 May 2022 14:55:03 +0000 (07:55 -0700)] 
GH-92804: Fix memory leak in memoryview iterator (gh-92805)

(cherry picked from commit d923fdf54bc97baece879179ba4971f632b9722b)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
3 years agogh-92311: Add tests for frame_setlineno jumping over listcomps (GH-92741)
Miss Islington (bot) [Sat, 14 May 2022 06:19:00 +0000 (23:19 -0700)] 
gh-92311: Add tests for frame_setlineno jumping over listcomps (GH-92741)

(cherry picked from commit 8cf2906828b4ea281ea5381bf59b9052bae99f53)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
3 years agogh-92611: Link to PEP 594 sections & add key detail in doc deprecation notices (GH...
Miss Islington (bot) [Fri, 13 May 2022 20:09:53 +0000 (13:09 -0700)] 
gh-92611: Link to PEP 594 sections & add key detail in doc deprecation notices (GH-92612)

(cherry picked from commit 9f68dab3d327335b938046c50b4f09944e993cc8)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
3 years agoFix typo in argparse docs. (GH-92691) (#92709)
Miss Islington (bot) [Fri, 13 May 2022 14:03:03 +0000 (07:03 -0700)] 
Fix typo in argparse docs. (GH-92691) (#92709)

3 years agoDocument Py_ssize_t. (GH-92512)
Miss Islington (bot) [Fri, 13 May 2022 13:32:05 +0000 (06:32 -0700)] 
Document Py_ssize_t. (GH-92512)

It fixes 252 errors from a Sphinx nitpicky run (sphinx-build -n). But
there's 8182 errors left.

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 664aa94b570a4a8f3535efb2e3d638a4ab655943)

Co-authored-by: Julien Palard <julien@palard.fr>
3 years agoGH-92236: Remove spurious "line" event when starting coroutine or generator. (GH...
Miss Islington (bot) [Fri, 13 May 2022 10:52:54 +0000 (03:52 -0700)] 
GH-92236: Remove spurious "line" event when starting coroutine or generator. (GH-92722) (GH-92772)

(cherry picked from commit 22a1db378c5c381272362c5b2f68ac78a368e136)

3 years agogh-90473: Increase stack size, disable obmalloc on WASI (GH-92732)
Miss Islington (bot) [Fri, 13 May 2022 07:00:33 +0000 (00:00 -0700)] 
gh-90473: Increase stack size, disable obmalloc on WASI (GH-92732)

(cherry picked from commit d81d57e9598dea741e049f3876ccd87072a38906)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-92436: __future__ docs: add note on expectations for "from __future__ import annot...
Miss Islington (bot) [Thu, 12 May 2022 14:37:59 +0000 (07:37 -0700)] 
gh-92436: __future__ docs: add note on expectations for "from __future__ import annotations" (GH-92568)

(cherry picked from commit 6582c96454ddb731eb412c2a473300172225fdb9)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agoUpdate outdated `LOAD_METHOD` comments in `Python/ceval.c` (GH-92641)
Miss Islington (bot) [Thu, 12 May 2022 12:59:36 +0000 (05:59 -0700)] 
Update outdated `LOAD_METHOD` comments in `Python/ceval.c` (GH-92641)

(cherry picked from commit bdf99691972c4e452a86eb3ca7ff7ae748d881a6)

Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
3 years agogh-89653: PEP 670: unicodeobject.h uses _Py_CAST() (GH-92696) (GH-92703)
Miss Islington (bot) [Thu, 12 May 2022 00:01:35 +0000 (17:01 -0700)] 
gh-89653: PEP 670: unicodeobject.h uses _Py_CAST() (GH-92696) (GH-92703)

Use _Py_CAST() and _Py_STATIC_CAST() in macros wrapping static inline
functions of unicodeobject.h.

Change also the kind type from unsigned int to int: same parameter
type than PyUnicode_FromKindAndData().

The limited API version 3.11 no longer casts arguments to expected
types.
(cherry picked from commit d0c9353a79c2003385c83892db5dfd4e443474c9)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-89653: PEP 670: Use PyObject* type for parameters (GH-92694)
Miss Islington (bot) [Wed, 11 May 2022 23:23:29 +0000 (16:23 -0700)] 
gh-89653: PEP 670: Use PyObject* type for parameters (GH-92694)

Use the PyObject* type for parameters of static inline functions:

* Py_SIZE(): same parameter type than PyObject_Size()
* PyList_GET_SIZE(), PyList_SET_ITEM(): same parameter type than
  PyList_Size() and PyList_SetItem()
* PyTuple_GET_SIZE(), PyTuple_SET_ITEM(): same parameter type than
  PyTuple_Size() and PyTuple_SetItem().
(cherry picked from commit 6de78ef96afbaa127472bb9dc0a4e41e44555d00)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-92031, test_embed: Improve test for unquickening static code (GH-92440)
Miss Islington (bot) [Wed, 11 May 2022 23:22:45 +0000 (16:22 -0700)] 
gh-92031, test_embed: Improve test for unquickening static code (GH-92440)

(cherry picked from commit 27185f98fff07b1da84f390f84dc9cbc7c8f0ad5)

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
3 years agoFix minor documentation error in bisect docs (GH-92697)
Miss Islington (bot) [Wed, 11 May 2022 23:13:13 +0000 (16:13 -0700)] 
Fix minor documentation error in bisect docs (GH-92697)

(cherry picked from commit b3f99b69d03cf0ea72a567a81e8bc4bc074ab303)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years agogh-89653: PEP 670: Limited API doesn't cast arguments (GH-92654)
Miss Islington (bot) [Wed, 11 May 2022 22:32:04 +0000 (15:32 -0700)] 
gh-89653: PEP 670: Limited API doesn't cast arguments (GH-92654)

The limited API version 3.11 no longer casts arguments to expected
types of functions of functions:

* PyList_GET_SIZE(), PyList_SET_ITEM()
* PyTuple_GET_SIZE(), PyTuple_SET_ITEM()
* PyWeakref_GET_OBJECT()
(cherry picked from commit 7d3b469e475e6e52ce4f0bad7198bb05ead77b1d)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-90978: asyncio TestSSL uses SHORT_TIMEOUT (GH-92642)
Miss Islington (bot) [Wed, 11 May 2022 21:56:07 +0000 (14:56 -0700)] 
gh-90978: asyncio TestSSL uses SHORT_TIMEOUT (GH-92642)

TestSSL of asyncio now uses support.SHORT_TIMEOUT rather than
hardcoded timeouts like 5, 10 or 40 seconds.
(cherry picked from commit 1d1929fcb55f8fa9317c19ed4789e1dd6c435092)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agobpo-42627: Fix incorrect parsing of Windows registry proxy settings (GH-26307)
Miss Islington (bot) [Wed, 11 May 2022 18:41:53 +0000 (11:41 -0700)] 
bpo-42627: Fix incorrect parsing of Windows registry proxy settings (GH-26307)

(cherry picked from commit b69297ea23c0ab9866ae8bd26a347a9b5df567a6)

Co-authored-by: 狂男风 <CrazyBoyFeng@Live.com>
3 years ago[3.11] gh-89336: Fix configparser.RawConfigParser.readfp typo (GH-92636) (GH-92662)
Miss Islington (bot) [Wed, 11 May 2022 17:38:30 +0000 (10:38 -0700)] 
[3.11] gh-89336: Fix configparser.RawConfigParser.readfp typo (GH-92636) (GH-92662)

(cherry picked from commit 75e463430efcb5b20efa93f9a5d98ccd03d83a3d)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.11] gh-91810: ElementTree: Use text file's encoding by default in XML declaration...
Miss Islington (bot) [Wed, 11 May 2022 17:36:52 +0000 (10:36 -0700)] 
[3.11] gh-91810: ElementTree: Use text file's encoding by default in XML declaration (GH-91903) (GH-92663)

ElementTree method write() and function tostring() now use the text file's
encoding ("UTF-8" if not available) instead of locale encoding in XML
declaration when encoding="unicode" is specified.
(cherry picked from commit 707839b0fe02ba2c891a40f40e7a869d84c2c9c5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.11] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631)...
Miss Islington (bot) [Wed, 11 May 2022 10:49:59 +0000 (03:49 -0700)] 
[3.11] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92659)

(cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33)

Co-authored-by: Mikhail Terekhov <termim@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years agoUpdate numbers.rst (GH-31995)
Miss Islington (bot) [Wed, 11 May 2022 07:36:24 +0000 (00:36 -0700)] 
Update numbers.rst (GH-31995)

(cherry picked from commit dde8a1668e0a6ad09634d0c701742c91da616497)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
3 years agogh-91966 Document where key functions are applied in the bisect module (GH-92602...
Miss Islington (bot) [Wed, 11 May 2022 07:06:10 +0000 (00:06 -0700)] 
gh-91966 Document where key functions are applied in the bisect module (GH-92602) (#92667)

3 years agogh-92550: Fix pathlib.Path.rglob() for empty pattern (GH-92604)
Miss Islington (bot) [Wed, 11 May 2022 05:13:11 +0000 (22:13 -0700)] 
gh-92550: Fix pathlib.Path.rglob() for empty pattern (GH-92604)

(cherry picked from commit 87f849c775ca54f56ad60ebf96822b93bbd0029a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agoFix inconsistent return type for statistics median_grouped() gh-92531 (GH-92533...
Miss Islington (bot) [Wed, 11 May 2022 04:45:17 +0000 (21:45 -0700)] 
Fix inconsistent return type for statistics median_grouped()  gh-92531 (GH-92533) (#92656)

3 years agoRevert "gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)" (GH-92599)
Serhiy Storchaka [Wed, 11 May 2022 04:14:40 +0000 (07:14 +0300)] 
Revert "gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)" (GH-92599)

This reverts commit a51baec9ce0eae2b4db069a55daf8f03be3ab2f4.

3 years agogh-92619: Fix bug where the compiler duplicates exit blocks unnecessarily (GH-92620...
Miss Islington (bot) [Tue, 10 May 2022 21:01:17 +0000 (14:01 -0700)] 
gh-92619: Fix bug where the compiler duplicates exit blocks unnecessarily (GH-92620) (GH-92621)

(cherry picked from commit 7c6b7ade8df35355484d3944779fe35dcc560aab)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 years agogh-91731: Fix typo in pymacro.h (GH-92618)
Miss Islington (bot) [Tue, 10 May 2022 13:24:11 +0000 (06:24 -0700)] 
gh-91731: Fix typo in pymacro.h (GH-92618)

* Fix typo in pymacro.h

* Update Include/pymacro.h

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 4e6da502f42e3cbdffbe850833d2b04996232f0d)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years ago[3.11] gh-76773: Update docs mentioning no-longer-supported Windows versions & featur...
Miss Islington (bot) [Tue, 10 May 2022 09:55:36 +0000 (02:55 -0700)] 
[3.11] gh-76773: Update docs mentioning no-longer-supported Windows versions & features (GH-92529) (GH-92608)

(cherry picked from commit f1bbcba74f77eff2a4c0881f3d529f3bf0664d40)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years agoAdd `__slots__` to `typing._NotIterable` (GH-92570)
Miss Islington (bot) [Tue, 10 May 2022 09:45:17 +0000 (02:45 -0700)] 
Add `__slots__` to `typing._NotIterable` (GH-92570)

(cherry picked from commit eef47d5bc79469c2d5328d6f5a9732e44a49dd5a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agogh-92417: `zlib` docs, `binascii` docs: remove Python 2 compatibility notes (GH-92543...
Miss Islington (bot) [Tue, 10 May 2022 09:29:59 +0000 (02:29 -0700)] 
gh-92417: `zlib` docs, `binascii` docs: remove Python 2 compatibility notes (GH-92543) (GH-92607)

(cherry picked from commit 7c638e64050778f2e0052ec9f84cd202b8aedfce)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago[3.11] gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539...
Miss Islington (bot) [Tue, 10 May 2022 09:28:20 +0000 (02:28 -0700)] 
[3.11] gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539) (GH-92606)

(cherry picked from commit 6823ba4a9ee1a88102e835c5a278904f35588675)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years agogh-92256: Improve Argument Clinic parser error messages (GH-92268)
Miss Islington (bot) [Tue, 10 May 2022 07:48:34 +0000 (00:48 -0700)] 
gh-92256: Improve Argument Clinic parser error messages (GH-92268)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 4bd07d1dbd493fc9b2c2a77e9e905c517682052e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agogh-92261: Disallow iteration of Union (and other special forms) (GH-92262) (GH-92582)
Miss Islington (bot) [Tue, 10 May 2022 05:39:31 +0000 (22:39 -0700)] 
gh-92261: Disallow iteration of Union (and other special forms) (GH-92262) (GH-92582)

(cherry picked from commit 4739997e141c4c84bd2241d4d887c3c658d92700)

Co-authored-by: Matthew Rahtz <matthew.rahtz@gmail.com>
3 years agobpo-13553: Document tkinter.Tk args (GH-4786)
Miss Islington (bot) [Tue, 10 May 2022 04:17:57 +0000 (21:17 -0700)] 
bpo-13553: Document tkinter.Tk args (GH-4786)

(cherry picked from commit c56e2bb9949c95ec8911cd5554b07044a564796f)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
3 years agogh-91928: Add what's new entry for datetime.UTC alias (GH-92567)
Miss Islington (bot) [Tue, 10 May 2022 04:07:05 +0000 (21:07 -0700)] 
gh-91928: Add what's new entry for datetime.UTC alias (GH-92567)

I merged this without a What's New entry to avoid merge conflicts, so here's the follow-up adding the entry.

@Kab1r do you mind reviewing?

Closes GH-91928

Automerge-Triggered-By: GH:pganssle
(cherry picked from commit a0a825c38a0c2ceec024a276f1f527c93ba57af2)

Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
3 years agogh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)
Miss Islington (bot) [Tue, 10 May 2022 00:39:43 +0000 (17:39 -0700)] 
gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)

We could try to remedy this by taking a slice, but we then run into an issue where the empty string will match altsep on POSIX. That rabbit hole could keep getting deeper.

A proper fix for the original issue involves making pathlib's path normalisation more configurable - in this case we want to retain trailing slashes, but in other we might want to preserve `./` prefixes, or elide `../` segments when we're sure we won't encounter symlinks.

This reverts commit ea2f5bcda1a392804487e6883be89fbad38a01a5.
(cherry picked from commit dcdf250d2de1428f7d8b4e9ecf51d2fd8200e21a)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
3 years agobpo-46907: Update Windows installer to SQLite 3.38.4. (GH-92322)
Miss Islington (bot) [Mon, 9 May 2022 22:07:29 +0000 (15:07 -0700)] 
bpo-46907: Update Windows installer to SQLite 3.38.4. (GH-92322)

(cherry picked from commit 22bddc864d3cc04ed218beb3b706ff1790db836a)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
3 years agoDoc: Update py2app link. (GH-91585)
Miss Islington (bot) [Mon, 9 May 2022 21:25:33 +0000 (14:25 -0700)] 
Doc: Update py2app link. (GH-91585)

See: https://mail.python.org/archives/list/docs@python.org/thread/KDVFGNGGUGGPVRZT7WZYHHWXCRS2GEN7/
(cherry picked from commit b77a95f44a024d1afab28e380252aa6d9c4efb1c)

Co-authored-by: Julien Palard <julien@palard.fr>
3 years agogh-91731: Add macro compatibility for static_assert for old libcs (GH-92559) (#92566)
Miss Islington (bot) [Mon, 9 May 2022 19:35:42 +0000 (12:35 -0700)] 
gh-91731: Add macro compatibility for static_assert for old libcs (GH-92559) (#92566)

(cherry picked from commit f0614ca9801d0768094570b784d2b26936bcca34)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
3 years agogh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)
Miss Islington (bot) [Mon, 9 May 2022 14:18:37 +0000 (07:18 -0700)] 
gh-91345: Talk about ``sys._getframe`` compatibility in 3.11 whatsnew (GH-92552)

(cherry picked from commit be3cdd66c95806c648b6000c2b9f0e8417473eb8)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
3 years agoWhat's New in Python 3.11: move C API changes (GH-92390)
Miss Islington (bot) [Mon, 9 May 2022 10:55:45 +0000 (03:55 -0700)] 
What's New in Python 3.11: move C API changes (GH-92390)

Move C API changes to the C API > Porting to Python 3.11 section.
(cherry picked from commit d8104d13cd80737f5efe1cd94aeec5979f912cd0)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agoEnhance PyConfig documentation (GH-92394)
Miss Islington (bot) [Mon, 9 May 2022 10:51:11 +0000 (03:51 -0700)] 
Enhance PyConfig documentation (GH-92394)

(cherry picked from commit 7b9803f93fbd1f8cfcc93ae7847ba029e9183db4)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years agogh-90005: Cleanup after GH-31698 (GH-91642)
Miss Islington (bot) [Mon, 9 May 2022 09:23:24 +0000 (02:23 -0700)] 
gh-90005: Cleanup after GH-31698 (GH-91642)

(cherry picked from commit 269e7267236256e269a3a6af7a4d4fea1c7439ea)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agoCODEOWNERS: Add Erlend Aasland as sqlite3 code owner (GH-92535)
Miss Islington (bot) [Mon, 9 May 2022 08:31:44 +0000 (01:31 -0700)] 
CODEOWNERS: Add Erlend Aasland as sqlite3 code owner (GH-92535)

Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit 3edda031e4abcdc8a2974f2708db99eeb109de32)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
3 years agobpo-38056: overhaul Error Handlers section in codecs documentation (GH-15732)
Miss Islington (bot) [Mon, 9 May 2022 03:13:45 +0000 (20:13 -0700)] 
bpo-38056: overhaul Error Handlers section in codecs documentation (GH-15732)

* Some handlers were wrongly described as text-encoding only, but actually they can also be used in text-decoding.
* Add more description to each handler.
* Add two REPL examples.
* Add indexes for Error Handler's name.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 5bc2390229bbcb4f13359e867fd8a140a1d5496b)

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
3 years agopdb docs: workaround for double semicolon in strings (GH-17011)
Miss Islington (bot) [Sun, 8 May 2022 23:36:37 +0000 (16:36 -0700)] 
pdb docs: workaround for double semicolon in strings (GH-17011)

see https://github.com/gotcha/ipdb/issues/172

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2888b1107fd0b43cc800987a00155bdbeacdb23a)

Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
3 years agobpo-39229: fix formatting in library/functions.rst (GH-17857)
Miss Islington (bot) [Sun, 8 May 2022 23:34:01 +0000 (16:34 -0700)] 
bpo-39229: fix formatting in library/functions.rst (GH-17857)

Missing reference of auditing event presents error when building translated documentation
(cherry picked from commit f298ba1f2712ad10530a30bb225548a6889820b5)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
3 years agogh-77521: Add link to builtin module names in modules tutorial (GH-92438)
Miss Islington (bot) [Sun, 8 May 2022 19:45:14 +0000 (12:45 -0700)] 
gh-77521: Add link to builtin module names in modules tutorial (GH-92438)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 859250cc55711f4d62b65922d3f7537826c3801e)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
3 years agogh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598)...
Miss Islington (bot) [Sun, 8 May 2022 17:14:14 +0000 (10:14 -0700)] 
gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) (#92495)

Do not spawn ProcessPool workers on demand when they spawn via fork.

This avoids potential deadlocks in the child processes due to forking from
a multithreaded process.
(cherry picked from commit ebb37fc3fdcb03db4e206db017eeef7aaffbae84)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years agoUse percentage over factor for 3.11 whatsnew performance (GH-92496)
Miss Islington (bot) [Sun, 8 May 2022 16:59:14 +0000 (09:59 -0700)] 
Use percentage over factor for 3.11 whatsnew performance (GH-92496)

(cherry picked from commit 9304f9855852f8cc823534b954206181b933065e)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
3 years agogh-80856: doc: reveal doctest directives (GH-92318)
Miss Islington (bot) [Sun, 8 May 2022 16:33:11 +0000 (09:33 -0700)] 
gh-80856: doc: reveal doctest directives (GH-92318)

* Doc: Reveal doctest directives.

* Fix whitespace.

Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 7b024e3a3f77027f747da7580ed0a3ed2dec276a)

Co-authored-by: Davide Rizzo <sorcio@gmail.com>
3 years agoFix the `versionadded` for asyncio.StreamWriter.start_tls() (GH-92378)
Miss Islington (bot) [Sun, 8 May 2022 16:04:29 +0000 (09:04 -0700)] 
Fix the `versionadded` for asyncio.StreamWriter.start_tls() (GH-92378)

(cherry picked from commit 063e8ab72bf540ffd0e9214df38012be4b7727d8)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
3 years agogh-92417: `logging` docs: Remove warning that only applies to Python <3.2 (GH-92425)
Miss Islington (bot) [Sun, 8 May 2022 16:04:00 +0000 (09:04 -0700)] 
gh-92417: `logging` docs: Remove warning that only applies to Python <3.2 (GH-92425)

(cherry picked from commit 318c4e91ef166bcd5d513bb42b9156d54d423d4a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago`typing.Text`: tweak deprecation notice (GH-92405)
Miss Islington (bot) [Sun, 8 May 2022 15:36:54 +0000 (08:36 -0700)] 
`typing.Text`: tweak deprecation notice (GH-92405)

https://github.com/python/cpython/pull/92351/filesGH-r866869469

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit bdc99a830f27451754d80ec414d7799b0f4bfed6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years ago[3.11] gh-92417: `asyncio` docs: `asyncio.run()` is available on all supported Python...
Miss Islington (bot) [Sun, 8 May 2022 15:30:52 +0000 (08:30 -0700)] 
[3.11] gh-92417: `asyncio` docs: `asyncio.run()` is available on all supported Python versions (GH-92419) (GH-92462)

(cherry picked from commit f4e317b304c7f86e48885b4b74c7a8826648922c)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.11] gh-92417: `json` docs: `dict` is ordered on all supported Python versions...
Miss Islington (bot) [Sun, 8 May 2022 15:30:27 +0000 (08:30 -0700)] 
[3.11] gh-92417: `json` docs: `dict` is ordered on all supported Python versions (GH-92422) (GH-92464)

(cherry picked from commit bc098cfdb756f207d8fa84793e8ad91a2f263efb)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.11] gh-92417: `doctest` docs: remove references to Python <3.6 (GH-92420) (GH...
Miss Islington (bot) [Sun, 8 May 2022 15:29:58 +0000 (08:29 -0700)] 
[3.11] gh-92417: `doctest` docs: remove references to Python <3.6 (GH-92420) (GH-92467)

(cherry picked from commit 5639ea1ef9ba8452f81b61ad73152bd1bf1fd3a6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.11] GH-92431: Fix footnotes in Doc/c-api/exceptions.rst (GH-92432) (GH-92469)
Miss Islington (bot) [Sun, 8 May 2022 15:28:56 +0000 (08:28 -0700)] 
[3.11] GH-92431: Fix footnotes in  Doc/c-api/exceptions.rst (GH-92432) (GH-92469)

* Remove redundant footnote ref: the footnote has been removed
* Fix footnote ref to match footnote
* Convert footnotes into reST footnotes: will error if missing
(cherry picked from commit 788ef54bc94b0a7aa2a93f626e4067ab8561424c)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.11] gh-92417: `stdtypes` docs: delete discussion of Python 2 differences (GH-92423...
Miss Islington (bot) [Sun, 8 May 2022 15:25:26 +0000 (08:25 -0700)] 
[3.11] gh-92417: `stdtypes` docs: delete discussion of Python 2 differences (GH-92423) (GH-92472)

Given that 2.7 has now been end-of-life for two and a half years,
I don't think we need such a detailed explanation here anymore of
the differences between Python 2 and Python 3.
(cherry picked from commit 8efda1e7c6343b1671d93837bf2c146e4cf77bbf)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years agoUpdate What's New in 3.11 faster cpython figures and contributors (GH-92401)
Miss Islington (bot) [Sun, 8 May 2022 15:20:34 +0000 (08:20 -0700)] 
Update What's New in 3.11 faster cpython figures and contributors (GH-92401)

(cherry picked from commit b7380948f2eeb46aca9ef54889d61df9c4ad0203)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
3 years agobpo-45046: Support context managers in unittest (GH-28045)
Miss Islington (bot) [Sun, 8 May 2022 15:12:19 +0000 (08:12 -0700)] 
bpo-45046: Support context managers in unittest (GH-28045)

Add methods enterContext() and enterClassContext() in TestCase.
Add method enterAsyncContext() in IsolatedAsyncioTestCase.
Add function enterModuleContext().
(cherry picked from commit 086c6b1b0fe8d47ebd15512d7bdcb64c60a360f0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-92417: `typing` docs: `from __future__ import annotations` can be used in all...
Miss Islington (bot) [Sun, 8 May 2022 15:04:31 +0000 (08:04 -0700)] 
gh-92417: `typing` docs: `from __future__ import annotations` can be used in all supported Python versions (GH-92418)

(cherry picked from commit e5b4bd4d60aaf0292c5b9d628512145b8987b3c6)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agogh-92448: Update the documentation builder to render the GitHub issue. (GH-92449)
Miss Islington (bot) [Sun, 8 May 2022 13:05:01 +0000 (06:05 -0700)] 
gh-92448: Update the documentation builder to render the GitHub issue. (GH-92449)

(cherry picked from commit 45e1721d100bab09510ccf9da49f14ca5cc268f4)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 years agogh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (GH-92428)
Miss Islington (bot) [Sun, 8 May 2022 04:12:52 +0000 (21:12 -0700)] 
gh-88279: Fix compiler warning for using deprecated PySys_SetArgvEx (GH-92428)

(cherry picked from commit bd030b633f98ea5d9f93ef0105a51d2faf67070d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-92308: Add Pending Removal section to 3.11 What's New (GH-92309)
Miss Islington (bot) [Sun, 8 May 2022 04:04:04 +0000 (21:04 -0700)] 
gh-92308: Add Pending Removal section to 3.11 What's New (GH-92309)

* gh-92308: Add Pending Removal section to 3.11 What's New

* Use compact list; drop attributions

* Add short text, and also missing PyUnicode_InternImmortal

* Fix formatting

* markup fix

* Update Doc/whatsnew/3.11.rst

Co-authored-by: Victor Stinner <vstinner@python.org>
* Apply suggestions from code review

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit 0924b95f6e678beaf4a059d679515956bac608fb)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
3 years ago[3.11] Add CI step to check changes in the exported ABI (#92442)
Pablo Galindo Salgado [Sun, 8 May 2022 03:32:17 +0000 (04:32 +0100)] 
[3.11] Add CI step to check changes in the exported ABI (#92442)

3 years agoAdd the 3.11 branch to the CI files
Pablo Galindo [Sun, 8 May 2022 03:01:20 +0000 (04:01 +0100)] 
Add the 3.11 branch to the CI files

3 years agoPost 3.11.0b1
Pablo Galindo [Sun, 8 May 2022 02:37:35 +0000 (03:37 +0100)] 
Post 3.11.0b1

3 years agoUpdate the SOURCE_URI in pyspecific.py to point to the new branch v3.11.0b1
Pablo Galindo [Fri, 6 May 2022 22:55:59 +0000 (23:55 +0100)] 
Update the SOURCE_URI in pyspecific.py to point to the new branch

3 years agoPython 3.11.0b1
Pablo Galindo [Fri, 6 May 2022 22:52:22 +0000 (23:52 +0100)] 
Python 3.11.0b1

3 years agogh-90997: Move `CACHE` handling into `_unpack_opargs` (#92409)
Brandt Bucher [Fri, 6 May 2022 17:57:08 +0000 (10:57 -0700)] 
gh-90997: Move `CACHE` handling into `_unpack_opargs` (#92409)

* Move CACHE handling into _unpack_opargs

* Remove auto-added import

* blurb add

3 years agogh-92203: Add closure support to exec(). (#92204)
larryhastings [Fri, 6 May 2022 17:09:35 +0000 (10:09 -0700)] 
gh-92203: Add closure support to exec(). (#92204)

Add a closure keyword-only parameter to exec(). It can only be specified when exec-ing a code object that uses free variables. When specified, it must be a tuple, with exactly the number of cell variables referenced by the code object. closure has a default value of None, and it must be None if the code object doesn't refer to any free variables.

3 years agogh-90978: test_ssl of test_asyncio uses LONG_TIMEOUT (#92402)
Victor Stinner [Fri, 6 May 2022 14:18:56 +0000 (16:18 +0200)] 
gh-90978: test_ssl of test_asyncio uses LONG_TIMEOUT (#92402)

On slow buildbot workers, some test_ssl tests fail randomly because
of short timeout (30 seconds). Use support.LONG_TIMEOUT instead which
is longer and also adjusted (by regrtest --timeout option) on
buildbot workers known to be slow.

3 years agogh-90997: Show cached inline values in `dis` output (#92360)
Brandt Bucher [Fri, 6 May 2022 14:18:09 +0000 (07:18 -0700)] 
gh-90997: Show cached inline values in `dis` output  (#92360)

3 years agogh-92368: Fix missing possessive apostrophe (#92397)
gophra [Fri, 6 May 2022 13:39:16 +0000 (21:39 +0800)] 
gh-92368: Fix missing possessive apostrophe (#92397)

* Fix missing possessive apostrophe

3 years agogh-91321: Fix _PyObject_EXTRA_INIT for C++ (#92396)
Victor Stinner [Fri, 6 May 2022 12:40:08 +0000 (14:40 +0200)] 
gh-91321: Fix _PyObject_EXTRA_INIT for C++ (#92396)

In C++, the _PyObject_EXTRA_INIT macro now uses nullptr, rather than
0, to initialize the _ob_next and _ob_prev members of the PyObject
structure.

Fix test_cppext failure when Python is built with
./configure --with-trace-refs.

3 years agoFix What's New: use :gh: instead of :issue: (#92395)
Serhiy Storchaka [Fri, 6 May 2022 12:32:10 +0000 (15:32 +0300)] 
Fix What's New: use :gh: instead of :issue: (#92395)