]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.9] GH-102126: fix deadlock at shutdown when clearing thread states (GH-102222... 104073/head
Kumar Aditya [Tue, 28 Mar 2023 08:55:36 +0000 (14:25 +0530)] 
[3.9] GH-102126: fix deadlock at shutdown when clearing thread states (GH-102222) (#102236)

(cherry picked from commit 5f11478ce7fda826d399530af4c5ca96c592f144)

2 years ago[3.9] gh-101997: Update bundled pip version to 23.0.1 (GH-101998). (#102243)
Pradyun Gedam [Tue, 28 Mar 2023 08:52:56 +0000 (09:52 +0100)] 
[3.9] gh-101997: Update bundled pip version to 23.0.1 (GH-101998). (#102243)

(cherry picked from commit 89d9ff0f48c51a85920c7372a7df4a2204e32ea5)

2 years ago[3.9] gh-102627: Replace address pointing toward malicious web page (GH-102630) ...
Miss Islington (bot) [Mon, 13 Mar 2023 23:28:36 +0000 (16:28 -0700)] 
[3.9] gh-102627: Replace address pointing toward malicious web page (GH-102630) (GH-102666)

(cherry picked from commit 61479d46848bc7a7f9b571b0b09c4a4b4436d839)

Co-authored-by: Blind4Basics <32236948+Blind4Basics@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.9] gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727) (GH-101751)
Steve Dower [Tue, 7 Mar 2023 23:01:22 +0000 (23:01 +0000)] 
[3.9] gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727) (GH-101751)

Fixes CVE-2023-0286 (High) and a couple of Medium security issues.
https://www.openssl.org/news/secadv/20230207.txt

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Ned Deily <nad@python.org>
2 years ago[3.9] gh-101981: Fix Ubuntu SSL tests with OpenSSL (3.1.0-beta1) CI i… (#102094)
Dong-hee Na [Tue, 21 Feb 2023 16:33:23 +0000 (01:33 +0900)] 
[3.9] gh-101981: Fix Ubuntu SSL tests with OpenSSL (3.1.0-beta1) CI i… (#102094)

[3.9] gh-101981: Fix Ubuntu SSL tests with OpenSSL (3.1.0-beta1) CI issue (gh-102079)

2 years ago[3.9] gh-101283: Improved fallback logic for subprocess with shell=True on Windows...
Miss Islington (bot) [Thu, 9 Feb 2023 09:59:40 +0000 (01:59 -0800)] 
[3.9] gh-101283: Improved fallback logic for subprocess with shell=True on Windows (GH-101286) (#101709)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2 years agogh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
Miss Islington (bot) [Mon, 30 Jan 2023 18:21:08 +0000 (10:21 -0800)] 
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)

(cherry picked from commit ea232716d3de1675478db3a302629ba43194c967)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2 years ago[3.9] Bump Azure Pipelines to ubuntu-22.04 (GH-101089) (#101214)
Miss Islington (bot) [Sat, 21 Jan 2023 19:38:52 +0000 (11:38 -0800)] 
[3.9] Bump Azure Pipelines to ubuntu-22.04 (GH-101089) (#101214)

(cherry picked from commit c22a55c8b4f142ff679880ec954691d5920b7845)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.9] gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100903) (#100904)
Steve Dower [Fri, 20 Jan 2023 22:22:50 +0000 (22:22 +0000)] 
[3.9] gh-100180: Update Windows installer to OpenSSL 1.1.1s (GH-100903) (#100904)

2 years ago[3.9] GH-100892: Fix race in clearing `threading.local` (GH-100922) (#100939)
Kumar Aditya [Fri, 20 Jan 2023 22:21:40 +0000 (03:51 +0530)] 
[3.9] GH-100892: Fix race in clearing `threading.local` (GH-100922) (#100939)

[3.9] [3.10] GH-100892: Fix race in clearing `threading.local` (GH-100922).
(cherry picked from commit 762745a124cbc297cf2fe6f3ec9ca1840bb2e873)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>.
(cherry picked from commit 683e9fe30ecd024f5508b2a33316752870100a96)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2 years ago[3.9] gh-95778: add doc missing in some places (GH-100627). (#101066)
Éric [Fri, 20 Jan 2023 22:21:00 +0000 (17:21 -0500)] 
[3.9] gh-95778: add doc missing in some places (GH-100627). (#101066)

(cherry picked from commit 46521826cb1883e29e4640f94089dd92c57efc5b)

Co-authored-by: Éric <earaujo@caravan.coop>
2 years ago[3.9] Correct CVE-2020-10735 documentation (GH-100306). (#100697)
Gregory P. Smith [Fri, 20 Jan 2023 22:20:32 +0000 (14:20 -0800)] 
[3.9] Correct CVE-2020-10735 documentation (GH-100306). (#100697)

(cherry picked from commit 1cf3d78c92eb07dc09d15cc2e773b0b1b9436825)
(cherry picked from commit 88fe8d701af3316c8869ea18ea1c7acec6f68c04)

Co-authored-by: Jeremy Paige <ucodery@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.9] Update copyright year in README (GH-100863) (GH-100865) (GH-100866)
Miss Islington (bot) [Mon, 9 Jan 2023 03:11:49 +0000 (19:11 -0800)] 
[3.9] Update copyright year in README (GH-100863) (GH-100865) (GH-100866)

(cherry picked from commit 30a6cc418a60fccb91ba574b552203425e594c47)

Co-authored-by: Ned Deily <nad@python.org>
Co-authored-by: HARSHA VARDHAN <75431678+Thunder-007@users.noreply.github.com>
2 years ago[3.9] Update copyright years to 2023. (gh-100851)
Benjamin Peterson [Sun, 8 Jan 2023 23:00:10 +0000 (17:00 -0600)] 
[3.9] Update copyright years to 2023. (gh-100851)

* [3.9] Update copyright years to 2023. (gh-100848).
(cherry picked from commit 11f99323c2ae0ec428c370a335695e3d8d4afc1d)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
* Update additional copyright years to 2023.

Co-authored-by: Ned Deily <nad@python.org>
2 years agoClarify that every thread has its own default context in contextvars (GH-99246)
Miss Islington (bot) [Tue, 20 Dec 2022 11:57:08 +0000 (03:57 -0800)] 
Clarify that every thread has its own default context in contextvars (GH-99246)

(cherry picked from commit cb60b6131bc2bb11c48a15f808914d8b242b9fc5)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 years agoPost 3.9.16
Łukasz Langa [Tue, 6 Dec 2022 18:50:26 +0000 (19:50 +0100)] 
Post 3.9.16

2 years agoPython 3.9.16 v3.9.16
Łukasz Langa [Tue, 6 Dec 2022 17:59:46 +0000 (18:59 +0100)] 
Python 3.9.16

2 years ago[3.9] gh-100001: Omit control characters in http.server stderr logs. (GH-100002)...
Miss Islington (bot) [Tue, 6 Dec 2022 10:22:12 +0000 (02:22 -0800)] 
[3.9] gh-100001: Omit control characters in http.server stderr logs. (GH-100002) (#100032)

* gh-100001: Omit control characters in http.server stderr logs. (GH-100002)

Replace control characters in http.server.BaseHTTPRequestHandler.log_message with an escaped \xHH sequence to avoid causing problems for the terminal the output is printed to.
(cherry picked from commit d8ab0a4dfa48f881b4ac9ab857d2e9de42f72828)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
* also escape \s (backport of PR #100038).

* add versionadded and remove extra 'to'

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 years ago[3.9] gh-87604: Avoid publishing list of active per-interpreter audit hooks via the...
Steve Dower [Mon, 21 Nov 2022 18:13:33 +0000 (18:13 +0000)] 
[3.9] gh-87604: Avoid publishing list of active per-interpreter audit hooks via the gc module (GH-99373) (GH-99493)

2 years ago[3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) (#99230)
Miss Islington (bot) [Thu, 10 Nov 2022 15:57:41 +0000 (07:57 -0800)] 
[3.9] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222) (#99230)

There was an unnecessary quadratic loop in idna decoding. This restores
the behavior to linear.

(cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d)
(cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years ago[3.9] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501) ...
Miss Islington (bot) [Fri, 28 Oct 2022 10:08:30 +0000 (03:08 -0700)] 
[3.9] gh-97514: Don't use Linux abstract sockets for multiprocessing (GH-98501) (#98504)

Linux abstract sockets are insecure as they lack any form of filesystem
permissions so their use allows anyone on the system to inject code into
the process.

This removes the default preference for abstract sockets in
multiprocessing introduced in Python 3.9+ via
https://github.com/python/cpython/pull/18866 while fixing
https://github.com/python/cpython/issues/84031.

Explicit use of an abstract socket by a user now generates a
RuntimeWarning.  If we choose to keep this warning, it should be
backported to the 3.7 and 3.8 branches.
(cherry picked from commit 49f61068f49747164988ffc5a442d2a63874fc17)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years ago[3.9] gh-98517: Fix buffer overflows in _sha3 module (GH-98519) (#98526)
Miss Islington (bot) [Fri, 28 Oct 2022 10:08:06 +0000 (03:08 -0700)] 
[3.9] gh-98517: Fix buffer overflows in _sha3 module (GH-98519) (#98526)

This is a port of the applicable part of XKCP's fix [1] for
CVE-2022-37454 and avoids the segmentation fault and the infinite
loop in the test cases published in [2].

[1]: https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a
[2]: https://mouha.be/sha-3-buffer-overflow/

Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>
(cherry picked from commit 0e4e058602d93b88256ff90bbef501ba20be9dd3)

Co-authored-by: Theo Buehler <botovq@users.noreply.github.com>
3 years ago[3.9] gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742) (#98786)
Miss Islington (bot) [Fri, 28 Oct 2022 10:07:32 +0000 (03:07 -0700)] 
[3.9] gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742) (#98786)

Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680.

Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com>
(cherry picked from commit 3e07f827b359617664ad0880f218f17ae4483299)

3 years ago[3.9] gh-96710: Make the test timing more lenient for the int/str DoS regression...
Miss Islington (bot) [Tue, 11 Oct 2022 21:13:54 +0000 (14:13 -0700)] 
[3.9] gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717) (#98196)

gh-96710: Make the test timing more lenient for the int/str DoS regression test. (GH-96717)

A regression would still absolutely fail and even a flaky pass isn't
harmful as it'd fail most of the time across our N system test runs.

Windows has a low resolution timer and CI systems are prone to odd
timing so this just gives more leeway to avoid flakiness.
(cherry picked from commit 11e3548fd1d3445ccde971d613633b58d73c3016)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years ago[3.9] gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993...
Miss Islington (bot) [Tue, 11 Oct 2022 21:13:18 +0000 (14:13 -0700)] 
[3.9] gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993) (#98190)

gh-68966: Make mailcap refuse to match unsafe filenames/types/params (GH-91993)
(cherry picked from commit b9509ba7a9c668b984dab876c7926fe1dc5aa0ba)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 years agoPost 3.9.15
Łukasz Langa [Tue, 11 Oct 2022 15:38:29 +0000 (17:38 +0200)] 
Post 3.9.15

3 years agoPython 3.9.15 v3.9.15
Łukasz Langa [Tue, 11 Oct 2022 14:48:37 +0000 (16:48 +0200)] 
Python 3.9.15

3 years ago[3.9] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) (#98054)
Miss Islington (bot) [Fri, 7 Oct 2022 20:53:39 +0000 (13:53 -0700)] 
[3.9] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) (#98054)

Revert params note in urllib.parse.urlparse table
(cherry picked from commit eed80458e8e776d15fa862da71dcce58c47e2ca7)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years ago[3.9] gh-94208: Add even more TLS version/protocol checks for FreeBSD (#98037)
Łukasz Langa [Fri, 7 Oct 2022 18:49:28 +0000 (11:49 -0700)] 
[3.9] gh-94208: Add even more TLS version/protocol checks for FreeBSD (#98037)

Otherwise, buildbot builds would fail since there's no TLS 1.0/1.1 support.

3 years ago[3.9] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944...
Miss Islington (bot) [Thu, 6 Oct 2022 19:14:32 +0000 (12:14 -0700)] 
[3.9] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) (#97968)

The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls.
 Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a
 segfault if cpython is built with the macOS 13 SDK but run on an earlier
 version of macOS. Prevent this by adding runtime support for detection of
 these system calls ("weaklinking") as is done for other newer syscalls on
 macOS.
(cherry picked from commit 6d0a0191a4e5477bd843e62c24d7f3bcad4fd5fc)

Co-authored-by: Ned Deily <nad@python.org>
3 years ago[3.9] gh-96848: Fix -X int_max_str_digits option parsing (GH-96988) (GH-97574)
Miss Islington (bot) [Tue, 4 Oct 2022 18:57:34 +0000 (11:57 -0700)] 
[3.9] gh-96848: Fix -X int_max_str_digits option parsing (GH-96988) (GH-97574)

gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)

Fix command line parsing: reject "-X int_max_str_digits" option with
no value (invalid) when the PYTHONINTMAXSTRDIGITS environment
variable is set to a valid limit.
(cherry picked from commit 41351662bcd21672d8ccfa62fe44d72027e6bcf8)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years ago[3.9] gh-96577: Fixes buffer overrun in _msi module (GH-96633) (GH-96657)
Miss Islington (bot) [Tue, 4 Oct 2022 17:06:17 +0000 (10:06 -0700)] 
[3.9] gh-96577: Fixes buffer overrun in _msi module (GH-96633) (GH-96657)

gh-96577: Fixes buffer overrun in _msi module (GH-96633)
(cherry picked from commit 4114bcc9ef7595a07196bcecf9c7d6d39f57f64d)

Co-authored-by: Steve Dower <steve.dower@python.org>
3 years ago[3.9] gh-95778: Mention sys.set_int_max_str_digits() in error message (#96874) (...
Victor Stinner [Tue, 4 Oct 2022 17:05:45 +0000 (19:05 +0200)] 
[3.9] gh-95778: Mention sys.set_int_max_str_digits() in error message (#96874) (#96877)

When ValueError is raised if an integer is larger than the limit,
mention sys.set_int_max_str_digits() in the error message.

(cherry picked from commit e841ffc915e82e5ea6e3b473205417d63494808d)

Co-authored-by: Ned Deily <nad@python.org>
3 years ago[3.9] gh-97005: Update libexpat from 2.4.7 to 2.4.9 (gh-97006) (gh-97012)
Miss Islington (bot) [Tue, 4 Oct 2022 17:04:33 +0000 (10:04 -0700)] 
[3.9] gh-97005: Update libexpat from 2.4.7 to 2.4.9 (gh-97006) (gh-97012)

gh-97005: Update libexpat from 2.4.7 to 2.4.9 (gh-97006)

Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
(cherry picked from commit 10e3d398c31cc1695752fc52bc6ca2ce9ef6237e)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Co-authored-by: Ned Deily <nad@python.org>
3 years ago[3.9] gh-97616: list_resize() checks for integer overflow (GH-97617) (GH-97627)
Miss Islington (bot) [Tue, 4 Oct 2022 17:01:10 +0000 (10:01 -0700)] 
[3.9] gh-97616: list_resize() checks for integer overflow (GH-97617) (GH-97627)

gh-97616: list_resize() checks for integer overflow (GH-97617)

Fix multiplying a list by an integer (list *= int): detect the
integer overflow when the new allocated length is close to the
maximum size.  Issue reported by Jordan Limor.

list_resize() now checks for integer overflow before multiplying the
new allocated length by the list item size (sizeof(PyObject*)).
(cherry picked from commit a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years ago[3.9] gh-97612: Fix shell injection in get-remote-certificate.py (GH-97613) (GH-97632)
Miss Islington (bot) [Tue, 4 Oct 2022 17:00:16 +0000 (10:00 -0700)] 
[3.9] gh-97612: Fix shell injection in get-remote-certificate.py (GH-97613) (GH-97632)

gh-97612: Fix shell injection in get-remote-certificate.py (GH-97613)

Fix a shell code injection vulnerability in the
get-remote-certificate.py example script. The script no longer uses a
shell to run "openssl" commands. Issue reported and initial fix by
Caleb Shortt.

Remove the Windows code path to send "quit" on stdin to the "openssl
s_client" command: use DEVNULL on all platforms instead.

Co-authored-by: Caleb Shortt <caleb@rgauge.com>
(cherry picked from commit 83a0f44ffd8b398673ae56c310cf5768d359c341)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 years ago[3.9] gh-87597: Document TimeoutExpired.stdout & .stderr types (GH-97685) (GH-97688)
Miss Islington (bot) [Tue, 4 Oct 2022 16:59:07 +0000 (09:59 -0700)] 
[3.9] gh-87597: Document TimeoutExpired.stdout & .stderr types (GH-97685) (GH-97688)

This documents the behavior that has always been the case since timeout
support was introduced in Python 3.3.
(cherry picked from commit b05dd796492160c37c9e15e3882f699f411b3461)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years ago[3.9] gh-96845: Fix docs around importlib.abc.Traversable (GH-97515) (GH-97761)
Jason R. Coombs [Tue, 4 Oct 2022 16:58:34 +0000 (12:58 -0400)] 
[3.9] gh-96845: Fix docs around importlib.abc.Traversable (GH-97515) (GH-97761)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
3 years agogh-97032: Set tkinter path for macOS CI (GH-97525)
Dong-hee Na [Sat, 24 Sep 2022 19:31:12 +0000 (04:31 +0900)] 
gh-97032: Set tkinter path for macOS CI (GH-97525)

3 years agoPost 3.9.14
Łukasz Langa [Tue, 6 Sep 2022 18:47:37 +0000 (20:47 +0200)] 
Post 3.9.14

3 years agoPython 3.9.14 v3.9.14
Łukasz Langa [Tue, 6 Sep 2022 17:23:34 +0000 (19:23 +0200)] 
Python 3.9.14

3 years ago[3.9] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96502)
Gregory P. Smith [Mon, 5 Sep 2022 09:21:03 +0000 (02:21 -0700)] 
[3.9] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96502)

* Correctly pre-check for int-to-str conversion (#96537)

Converting a large enough `int` to a decimal string raises `ValueError` as expected. However, the raise comes _after_ the quadratic-time base-conversion algorithm has run to completion. For effective DOS prevention, we need some kind of check before entering the quadratic-time loop. Oops! =)

The quick fix: essentially we catch _most_ values that exceed the threshold up front. Those that slip through will still be on the small side (read: sufficiently fast), and will get caught by the existing check so that the limit remains exact.

The justification for the current check. The C code check is:
```c
max_str_digits / (3 * PyLong_SHIFT) <= (size_a - 11) / 10
```

In GitHub markdown math-speak, writing $M$ for `max_str_digits`, $L$ for `PyLong_SHIFT` and $s$ for `size_a`, that check is:
$$\left\lfloor\frac{M}{3L}\right\rfloor \le \left\lfloor\frac{s - 11}{10}\right\rfloor$$

From this it follows that
$$\frac{M}{3L} < \frac{s-1}{10}$$
hence that
$$\frac{L(s-1)}{M} > \frac{10}{3} > \log_2(10).$$
So
$$2^{L(s-1)} > 10^M.$$
But our input integer $a$ satisfies $|a| \ge 2^{L(s-1)}$, so $|a|$ is larger than $10^M$. This shows that we don't accidentally capture anything _below_ the intended limit in the check.

<!-- gh-issue-number: gh-95778 -->
* Issue: gh-95778
<!-- /gh-issue-number -->

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
3 years ago[3.9] gh-91423: Remove bugs.python.org from bugs.rst (GH-91425) (GH-95614)
Shantanu [Thu, 4 Aug 2022 16:14:04 +0000 (09:14 -0700)] 
[3.9] gh-91423: Remove bugs.python.org from bugs.rst (GH-91425) (GH-95614)

Co-authored-by: roy reznik <royreznik@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>.
(cherry picked from commit df81d2892eed3a256eb61ce59304f2173fb0c945)

3 years agogh-95280: Fix test_get_ciphers on systems without RSA key exchange (GH-95282) (GH...
Miss Islington (bot) [Fri, 29 Jul 2022 15:20:06 +0000 (08:20 -0700)] 
gh-95280: Fix test_get_ciphers on systems without RSA key exchange (GH-95282) (GH-95323)

(cherry picked from commit 565403038b75eb64ea483b2757ba30769246d853)

Co-authored-by: Christian Heimes <christian@python.org>
3 years ago[3.9] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94835)
Dong-hee Na [Thu, 28 Jul 2022 19:31:17 +0000 (04:31 +0900)] 
[3.9] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94835)

(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
3 years ago[3.9] gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347) (GH-95312)
Łukasz Langa [Wed, 27 Jul 2022 21:43:02 +0000 (23:43 +0200)] 
[3.9] gh-94208: Add more TLS version/protocol checks for FreeBSD (GH-94347) (GH-95312)

Three test cases were failing on FreeBSD with latest OpenSSL.
(cherry picked from commit 1bc86c26253befa006c0f52eebb6ed633c7d1e5c)

Co-authored-by: Christian Heimes <christian@python.org>
3 years agogh-94821: Fix autobind of empty unix domain address (GH-94826) (GH-94875)
Miss Islington (bot) [Tue, 26 Jul 2022 10:07:41 +0000 (03:07 -0700)] 
gh-94821: Fix autobind of empty unix domain address (GH-94826) (GH-94875)

When binding a unix socket to an empty address on Linux, the socket is
automatically bound to an available address in the abstract namespace.

    >>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
    >>> s.bind("")
    >>> s.getsockname()
    b'\x0075499'

Since python 3.9, the socket is bound to the one address:

    >>> s.getsockname()
    b'\x00'

And trying to bind multiple sockets will fail with:

    Traceback (most recent call last):
      File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind
        s2.bind("")
    OSError: [Errno 98] Address already in use

Added 2 tests:
- Auto binding empty address on Linux
- Failing to bind an empty address on other platforms

Fixes f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866)
(cherry picked from commit c22f134211743cd5ad14cec1dd4f527bee542b4c)

Co-authored-by: Nir Soffer <nsoffer@redhat.com>
3 years ago[3.9] gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94570)
Łukasz Langa [Tue, 5 Jul 2022 16:06:57 +0000 (18:06 +0200)] 
[3.9] gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94570)

Co-authored-by: Carter Dodd <carter.dodd@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c8556bcf6c0b05ac46bd74880626a2853e7c99a1)

3 years agogh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416...
Miss Islington (bot) [Fri, 1 Jul 2022 16:41:54 +0000 (09:41 -0700)] 
gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links (GH-94416) (GH-94494)

(cherry picked from commit 80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
3 years agogh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) ...
Miss Islington (bot) [Wed, 22 Jun 2022 13:58:16 +0000 (06:58 -0700)] 
gh-91172: Create a workflow for verifying bundled pip and setuptools (GH-31885) (GH-94123)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
(cherry picked from commit d36954b7ead06daead3dcf9b0dd9f8002eab508f)

Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
3 years agogh-87389: Fix an open redirection vulnerability in http.server. (GH-93879) (GH-94093)
Miss Islington (bot) [Wed, 22 Jun 2022 08:42:02 +0000 (01:42 -0700)] 
gh-87389: Fix an open redirection vulnerability in http.server. (GH-93879) (GH-94093)

Fix an open redirection vulnerability in the `http.server` module when
an URI path starts with `//` that could produce a 301 Location header
with a misleading target.  Vulnerability discovered, and logic fix
proposed, by Hamza Avvan (@hamzaavvan).

Test and comments authored by Gregory P. Smith [Google].
(cherry picked from commit 4abab6b603dd38bec1168e9a37c40a48ec89508e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years agogh-91810: Fix regression with writing an XML declaration with encoding='unicode'...
Miss Islington (bot) [Thu, 16 Jun 2022 10:16:30 +0000 (03:16 -0700)] 
gh-91810: Fix regression with writing an XML declaration with encoding='unicode' (GH-93426) (GH-93791)

Suppress writing an XML declaration in open files in ElementTree.write()
with encoding='unicode' and xml_declaration=None.

If file patch is passed to ElementTree.write() with encoding='unicode',
always open a new file in UTF-8.
(cherry picked from commit d7db9dc3cc5b44d0b4ce000571fecf58089a01ec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 years agogh-83728: Add hmac.new default parameter deprecation (GH-91939) (GH-93546)
Miss Islington (bot) [Mon, 6 Jun 2022 17:10:56 +0000 (10:10 -0700)] 
gh-83728: Add hmac.new default parameter deprecation (GH-91939) (GH-93546)

(cherry picked from commit 56b5daf15970be449d44e91f08db84c698ac5506)

Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
3 years agogh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) (#93147)
Miss Islington (bot) [Tue, 24 May 2022 08:52:49 +0000 (01:52 -0700)] 
gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) (#93147)

Also while there, clarify a few things about why we reduce the hash to 32 bits.

Co-authored-by: Eli Libman <eli@hyro.ai>
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit c1f5c903a7e4ed27190488f4e33b00d3c3d952e5)

3 years agobpo-46879: Fix incorrect sphinx object names in doc (GH-31615) (GH-92976)
Miss Islington (bot) [Thu, 19 May 2022 16:03:55 +0000 (09:03 -0700)] 
bpo-46879: Fix incorrect sphinx object names in doc (GH-31615) (GH-92976)

(cherry picked from commit 2cdd57f119e3b85f1bfd28c7ff040e0d9bcaf115)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Martin Fischer <martin@push-f.com>
3 years agobpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92967)
Miss Islington (bot) [Thu, 19 May 2022 15:33:09 +0000 (08:33 -0700)] 
bpo-45393: help() on operator precedence has misleading entries (GH-31246) (GH-92967)

(cherry picked from commit fb082c2fc5a925085b179e63ca10b7f60b356d2f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
3 years agogh-92417: Update docs and examples of doctest.IGNORE_EXCEPTION_DETAIL for Py>=3 ...
Miss Islington (bot) [Thu, 19 May 2022 15:21:23 +0000 (08:21 -0700)] 
gh-92417: Update docs and examples of doctest.IGNORE_EXCEPTION_DETAIL for Py>=3 (GH-92502) (GH-92964)

(cherry picked from commit 97b9c1096feff77a564787ef520cc7d4e1d1c45f)

3 years agoPost 3.9.13
Łukasz Langa [Tue, 17 May 2022 17:06:39 +0000 (19:06 +0200)] 
Post 3.9.13

3 years agoPython 3.9.13 v3.9.13
Łukasz Langa [Tue, 17 May 2022 11:12:56 +0000 (13:12 +0200)] 
Python 3.9.13

3 years ago[3.9] gh-92112: Fix crash triggered by an evil custom `mro()` (GH-92113) (GH-92372)
Jelle Zijlstra [Mon, 16 May 2022 16:47:35 +0000 (09:47 -0700)] 
[3.9] gh-92112: Fix crash triggered by an evil custom `mro()` (GH-92113) (GH-92372)

(cherry picked from commit 85354ed78c0edb6d81a2bd53cabc85e547b8b26e)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
3 years ago[3.9] bpo-34480: fix bug where match variable is used prior to being defined (GH...
Marek Suscak [Mon, 16 May 2022 16:19:04 +0000 (18:19 +0200)] 
[3.9] bpo-34480: fix bug where match variable is used prior to being defined (GH-17643) (GH-32256)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
3 years agoCheck result of utc_to_seconds and skip fold probe in pure Python (GH-91582) (GH...
Miss Islington (bot) [Mon, 16 May 2022 15:33:01 +0000 (08:33 -0700)] 
Check result of utc_to_seconds and skip fold probe in pure Python (GH-91582) (GH-92748)

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-80143: Add clarification for escape characters (GH-92292) (GH-92630)
Miss Islington (bot) [Mon, 16 May 2022 15:32:28 +0000 (08:32 -0700)] 
gh-80143: Add clarification for escape characters (GH-92292) (GH-92630)

(cherry picked from commit 549567c6e70da4846c105a18a1a89e7dd09680d7)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
3 years agogh-92530: Fix an issue that occurred after interrupting threading.Condition.notify...
Miss Islington (bot) [Mon, 16 May 2022 15:25:31 +0000 (08:25 -0700)] 
gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) (GH-92831)

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>
3 years agogh-87670: Add web.archive redirects from effbot (GH-92816)
Miss Islington (bot) [Mon, 16 May 2022 06:32:15 +0000 (23:32 -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 agogh-92611: Link to PEP 594 sections & add key detail in doc deprecation notices (GH...
Miss Islington (bot) [Fri, 13 May 2022 20:13:02 +0000 (13:13 -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 agoDocument Py_ssize_t. (GH-92512)
Miss Islington (bot) [Fri, 13 May 2022 14:10:10 +0000 (07:10 -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 agoFix typo in argparse docs. (GH-92691) (#92731)
thueringa [Fri, 13 May 2022 14:01:30 +0000 (16:01 +0200)] 
Fix typo in argparse docs. (GH-92691) (#92731)

3 years ago[3.9] gh-92311: Let frame_setlineno jump over listcomps (#92740)
Dennis Sweeney [Thu, 12 May 2022 21:41:34 +0000 (17:41 -0400)] 
[3.9] gh-92311: Let frame_setlineno jump over listcomps (#92740)

3 years ago[3.9] gh-92436: __future__ docs: add note on expectations for "from __future__ import...
Jelle Zijlstra [Thu, 12 May 2022 21:12:28 +0000 (14:12 -0700)] 
[3.9] gh-92436: __future__ docs: add note on expectations for "from __future__ import annotations" (GH-92568). (#92726)

(cherry picked from commit 6582c96454ddb731eb412c2a473300172225fdb9)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
3 years agobpo-42627: Fix incorrect parsing of Windows registry proxy settings (GH-26307)
Miss Islington (bot) [Wed, 11 May 2022 18:42:10 +0000 (11:42 -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.9] gh-91810: ElementTree: Use text file's encoding by default in XML declaration...
Miss Islington (bot) [Wed, 11 May 2022 17:40:05 +0000 (10:40 -0700)] 
[3.9] gh-91810: ElementTree: Use text file's encoding by default in XML declaration (GH-91903) (GH-92665)

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.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) ...
Miss Islington (bot) [Wed, 11 May 2022 10:50:00 +0000 (03:50 -0700)] 
[3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92661)

(cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33)

Co-authored-by: Mikhail Terekhov <termim@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
3 years ago[3.9] gh-76773: Update docs mentioning no-longer-supported Windows versions & feature...
Miss Islington (bot) [Tue, 10 May 2022 09:28:24 +0000 (02:28 -0700)] 
[3.9] gh-76773: Update docs mentioning no-longer-supported Windows versions & features (GH-92529) (GH-92610)

(cherry picked from commit f1bbcba74f77eff2a4c0881f3d529f3bf0664d40)

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
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:49:09 +0000 (00:49 -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 agobpo-13553: Document tkinter.Tk args (GH-4786)
Miss Islington (bot) [Tue, 10 May 2022 04:20:37 +0000 (21:20 -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 agobpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858)
Itai Steinherz [Mon, 9 May 2022 22:42:59 +0000 (01:42 +0300)] 
bpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858)

* [3.9] bpo-46785: Fix race condition between os.stat() and unlink on Windows (GH-31858).
(cherry picked from commit 39e6b8ae6a5b49bb23746fdcc354d148ff2d98e3)

Co-authored-by: Itai Steinherz <itaisteinherz@gmail.com>
3 years agoDoc: Update py2app link. (GH-91585)
Miss Islington (bot) [Mon, 9 May 2022 21:31:12 +0000 (14:31 -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-92417: `asyncio` docs: `asyncio.run()` is available on all supported Python versio...
Miss Islington (bot) [Mon, 9 May 2022 16:49:25 +0000 (09:49 -0700)] 
gh-92417: `asyncio` docs: `asyncio.run()` is available on all supported Python versions (GH-92419)

(cherry picked from commit f4e317b304c7f86e48885b4b74c7a8826648922c)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
3 years agoCODEOWNERS: Add Erlend Aasland as sqlite3 code owner (GH-92535)
Miss Islington (bot) [Mon, 9 May 2022 08:32:26 +0000 (01:32 -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:20:07 +0000 (20:20 -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:44:33 +0000 (16:44 -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 agogh-77521: Add link to builtin module names in modules tutorial (GH-92438)
Miss Islington (bot) [Sun, 8 May 2022 19:50:28 +0000 (12:50 -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 ago[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH...
Miss Islington (bot) [Sun, 8 May 2022 18:22:36 +0000 (11:22 -0700)] 
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) (GH-92497) (#92499)

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>
(cherry picked from commit b795376a628ae7cc354addbb926d724ebe364fec)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
3 years agoFix use of the default role in a news entry. (GH-92500)
Miss Islington (bot) [Sun, 8 May 2022 17:55:44 +0000 (10:55 -0700)] 
Fix use of the default role in a news entry. (GH-92500)

(cherry picked from commit 8883172893b6c3bb553cd22fc351e0206dec8388)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
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:07:49 +0000 (09:07 -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[3.9] gh-92417: `json` docs: `dict` is ordered on all supported Python versions ...
Miss Islington (bot) [Sun, 8 May 2022 15:30:08 +0000 (08:30 -0700)] 
[3.9] gh-92417: `json` docs: `dict` is ordered on all supported Python versions (GH-92422) (GH-92466)

(cherry picked from commit bc098cfdb756f207d8fa84793e8ad91a2f263efb)

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

* 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.9] gh-77630: Change Charset to charset (GH-92439) (GH-92477)
Miss Islington (bot) [Sun, 8 May 2022 15:28:18 +0000 (08:28 -0700)] 
[3.9] gh-77630: Change Charset to charset (GH-92439) (GH-92477)

(cherry picked from commit 8f293180791f2836570bdfc29aadba04a538d435)

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

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 agogh-92417: `typing` docs: `from __future__ import annotations` can be used in all...
Miss Islington (bot) [Sun, 8 May 2022 15:04:06 +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 ago[3.9] gh-92448: Update the documentation builder to render the GitHub issue. (GH...
Dong-hee Na [Sun, 8 May 2022 13:21:05 +0000 (22:21 +0900)] 
[3.9] gh-92448: Update the documentation builder to render the GitHub issue. (GH-92449). (GH-92458)

3 years agogh-92368: Fix missing possessive apostrophe (GH-92397)
Miss Islington (bot) [Fri, 6 May 2022 14:13:43 +0000 (07:13 -0700)] 
gh-92368: Fix missing possessive apostrophe (GH-92397)

* Fix missing possessive apostrophe
(cherry picked from commit a79001ee16b3ea8b5d0fad595c969d9e1b7627f3)

Co-authored-by: gophra <105054704+gophra@users.noreply.github.com>
3 years agogh-92047: Py_GetVersion multi-digit minor version (GH-92047) (GH-92048) (#92329)
Miss Islington (bot) [Fri, 6 May 2022 12:47:30 +0000 (05:47 -0700)] 
gh-92047: Py_GetVersion multi-digit minor version (GH-92047) (GH-92048) (#92329)

(cherry picked from commit 43b135f94ebf3e6e84ddb0f75ed8510b96a610e4)

Co-authored-by: Robert Howlett <robert@howletts.org.uk>
Co-authored-by: Robert Howlett <robert@howletts.org.uk>
3 years agoAdd source for character mappings (GH-92014) (#92388)
Miss Islington (bot) [Fri, 6 May 2022 10:58:10 +0000 (03:58 -0700)] 
Add source for character mappings (GH-92014) (#92388)

(cherry picked from commit d707d073be5ecacb7ad341a1c1716f4998907d6b)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
3 years agoDocument the lifetime of `PyUnicode_AsUTF8String` (GH-92325)
Miss Islington (bot) [Fri, 6 May 2022 09:56:55 +0000 (02:56 -0700)] 
Document the lifetime of `PyUnicode_AsUTF8String` (GH-92325)

The current wording implied this, but didn't state it explicitly.
(cherry picked from commit 740da8d37a84638f4a8893bee3648f36fc6beb0f)

Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
3 years agoNEWS: Reorder items by section (GH-92373)
Miss Islington (bot) [Fri, 6 May 2022 05:20:09 +0000 (22:20 -0700)] 
NEWS: Reorder items by section (GH-92373)

They caused duplicated sections.
(cherry picked from commit 9b491ae04c900579ec82776aacdf71b2fd1e9d6a)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
3 years ago[3.9] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#92278)
Erlend Egeberg Aasland [Thu, 5 May 2022 19:47:58 +0000 (21:47 +0200)] 
[3.9] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters (#92278)

* [3.9] gh-80254: Disallow recursive usage of cursors in `sqlite3` converters

(cherry picked from commit c908dc5b4798c311981bd7e1f7d92fb623ee448b)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Fix ref leak in pysqlite_cursor_iternext

* Explicitly free resources at test tearDown()

3 years agogh-92223: Remove pre-Python 3.7 alternative in asyncio docs (GH-92224)
Miss Islington (bot) [Thu, 5 May 2022 00:36:04 +0000 (17:36 -0700)] 
gh-92223: Remove pre-Python 3.7 alternative in asyncio docs (GH-92224)

(cherry picked from commit d1b2e989be2bc5128d6602e4f370d0ee6f5ac476)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
3 years agogh-92036: Fix gc_fini_untrack() (GH-92037)
Miss Islington (bot) [Wed, 4 May 2022 10:25:33 +0000 (03:25 -0700)] 
gh-92036: Fix gc_fini_untrack() (GH-92037)

Fix a crash in subinterpreters related to the garbage collector. When
a subinterpreter is deleted, untrack all objects tracked by its GC.
To prevent a crash in deallocator functions expecting objects to be
tracked by the GC, leak a strong reference to these objects on
purpose, so they are never deleted and their deallocator functions
are not called.
(cherry picked from commit 14243369b5f80613628a565c224bba7fb3fcacd8)

Co-authored-by: Victor Stinner <vstinner@python.org>