]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 years agoDoc: Fix the array.fromfile method doc (GH-22037) (GH-25630)
Miss Islington (bot) [Mon, 26 Apr 2021 14:24:17 +0000 (07:24 -0700)] 
Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)

The check about the f argument type was removed in this commit:
https://github.com/python/cpython/commit/2c94aa567e525c82041ad68a3174d8c3acbf37e2

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
(cherry picked from commit bd25bcd37a3a41a0e08208e969f0c02287850c61)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
4 years agoUpdate asyncio-subprocess.rst (GH-21680) (GH-25621)
Miss Islington (bot) [Mon, 26 Apr 2021 04:47:05 +0000 (21:47 -0700)] 
Update asyncio-subprocess.rst (GH-21680) (GH-25621)

(cherry picked from commit 3c4850e222388889426e250ff43308e4802dc582)

Co-authored-by: Gabriel R F <github@gabrf.com>
4 years ago[3.9] documentation: clarification about the function remove in os library (GH-19024...
Senthil Kumaran [Mon, 26 Apr 2021 04:30:32 +0000 (21:30 -0700)] 
[3.9] documentation: clarification about the function remove in os library (GH-19024) (GH-25620)

(cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d)

Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
4 years agoFix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
Miss Islington (bot) [Mon, 26 Apr 2021 04:06:55 +0000 (21:06 -0700)] 
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)

(cherry picked from commit 7be870f9456ad04c3b67881497de6346d83805d2)

Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
4 years agoQuick pydoc update to smtplib.py (GH-22292) (GH-25615)
Miss Islington (bot) [Mon, 26 Apr 2021 04:03:54 +0000 (21:03 -0700)] 
Quick pydoc update to smtplib.py (GH-22292) (GH-25615)

Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py.
(cherry picked from commit b3dec6f9ede35fc3bf7ae1baf0aa5f2ce1b6bf9d)

Co-authored-by: uy-rrodriguez <5296200+uy-rrodriguez@users.noreply.github.com>
4 years agobpo-43534: Fix the turtle module working with multiple root windows GH-25593
Miss Islington (bot) [Mon, 26 Apr 2021 01:54:41 +0000 (18:54 -0700)] 
bpo-43534: Fix the turtle module working with multiple root windows GH-25593

(cherry picked from commit 8af929fc76f21fb123f6a47cb3ebcf4e5b758dea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agoFix broken links and improve stand-alone tools list in FAQ GH-25609
Miss Islington (bot) [Mon, 26 Apr 2021 01:43:43 +0000 (18:43 -0700)] 
Fix broken links and improve stand-alone tools list in FAQ GH-25609

(cherry picked from commit d28b34695301ec99a9334ad8d69b6092f4f703d5)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoFix id of 'Internet Message Format' RFC in email doc GH-25613
Miss Islington (bot) [Mon, 26 Apr 2021 01:42:56 +0000 (18:42 -0700)] 
Fix id of 'Internet Message Format' RFC in email doc  GH-25613

Previous ID (5233) refers to "Sieve Email Filtering: Subaddress
Extension". It seems that the actual reference should be "Internet
Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322).

(The typo probably comes from commit 29d1bc0842 in which the ID of
this RFC got updated from the obsolete 2822.)

Co-authored-by: Ambrose Chua <ambrose@hey.com>
(cherry picked from commit cb5c802dcf8851663c4eac5d73f968f626a3a1dc)
Co-authored-by: Denis Laxalde <denis@laxalde.org>
4 years agoFix copy.Error casing in documentation GH-22004 (#25611)
Miss Islington (bot) [Mon, 26 Apr 2021 01:39:24 +0000 (18:39 -0700)] 
Fix copy.Error casing in documentation GH-22004 (#25611)

(cherry picked from commit 0d930f108cb8ba66f54197175c1fba0c38253e4a)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Co-authored-by: Andre Delfino <adelfino@gmail.com>
4 years agoRemove mention of dst parameter from description of os.lstat() (GH-24704)
Miss Islington (bot) [Sun, 25 Apr 2021 21:47:54 +0000 (14:47 -0700)] 
Remove mention of dst parameter from description of os.lstat() (GH-24704)

It looks like it was accidentally copy-pasted in
6fa7aada9bd3616e0beeb266e818497b2ec1c859.
(cherry picked from commit 7f8e072c6dc88d6973d81f8fd572c04c88e7e3d7)

Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
4 years agoFix a typo in datamodel reference document (GH-24930)
Miss Islington (bot) [Sun, 25 Apr 2021 21:36:57 +0000 (14:36 -0700)] 
Fix a typo in datamodel reference document (GH-24930)

(cherry picked from commit a1a5e3c4c83c3e3fe24c96ae22dfdedc7e23a1bb)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
4 years ago[3.9] fix typo in warning (GH-20620) (#25601)
Senthil Kumaran [Sun, 25 Apr 2021 19:25:51 +0000 (12:25 -0700)] 
[3.9] fix typo in warning (GH-20620) (#25601)

* Add space after period to warning in _tzpath.py

Currently:
InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ...

* Update _tzpath.py
(cherry picked from commit a31cf86bc2d9c0738b2a0251af766d6b247683fc)

Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
4 years agoBaseHTTPRequestHandler, that path includes query (GH-25597)
Miss Islington (bot) [Sun, 25 Apr 2021 17:30:15 +0000 (10:30 -0700)] 
BaseHTTPRequestHandler, that path includes query (GH-25597)

* Clarify, for BaseHTTPRequestHandler, that path includes query

Co-authored-by: David Jones <drj@pobox.com>
(cherry picked from commit a89d8a94a0dd0bd45349efad6d5ad68641f4ff9a)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
4 years agoImprove CDN purge script (GH-25251) (#25254)
Miss Islington (bot) [Sun, 25 Apr 2021 15:19:32 +0000 (08:19 -0700)] 
Improve CDN purge script (GH-25251) (#25254)

(cherry picked from commit e35dd556e1adb4fc8b83e5b75ac59e428a8b5460)

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Steve Dower <steve.dower@python.org>
4 years ago[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by...
Serhiy Storchaka [Sun, 25 Apr 2021 10:49:31 +0000 (13:49 +0300)] 
[3.9] bpo-43655: Tkinter and IDLE dialog windows are now recognized as dialogs by window managers on macOS and X Window (GH-25187). (GH-25588)

(cherry picked from commit 3bb3fb3be09d472a43cdc3d9d9578bd49f3dfb8c)

4 years agobpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again...
Miss Islington (bot) [Sun, 25 Apr 2021 10:44:30 +0000 (03:44 -0700)] 
bpo-43534: Make dialogs in turtle.textinput() and turtle.numinput() transitient again (GH-24923)

(cherry picked from commit b5adc8a7e5c13d175b4d3e53b37bc61de35b1457)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years ago[3.9] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25578)
Stéphane Bidoul [Sat, 24 Apr 2021 22:27:44 +0000 (00:27 +0200)] 
[3.9] bpo-43930: Update bundled pip to 21.1 and setuptools to 56.0.0 (GH-25578)

(cherry picked from commit 196983563d05e32d2dcf217e955a919f9e0c25e1)

4 years agobpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsvers...
Miss Islington (bot) [Fri, 23 Apr 2021 18:09:20 +0000 (11:09 -0700)] 
bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500)

The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version.
Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part).
sys.getwindowsversion() is not updated to avoid launching executables from that module.
(cherry picked from commit 2a3f4899c63806439e5bcea0c30f7e6a6295a763)

Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
4 years agobpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)
Miss Islington (bot) [Fri, 23 Apr 2021 17:28:05 +0000 (10:28 -0700)] 
bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539)

(cherry picked from commit 3513d55a617012002c3f82dbf3cec7ec1abd7090)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years ago[3.9] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH...
Christian Heimes [Fri, 23 Apr 2021 12:23:35 +0000 (14:23 +0200)] 
[3.9] bpo-43920: Make load_verify_locations(cadata) error message consistent (GH-25554) (GH-25555)

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b9ad88be0304136c3fe5959c65a5d2c75490cd80)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)
Jason R. Coombs [Fri, 23 Apr 2021 06:46:16 +0000 (02:46 -0400)] 
bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445)

Use a versionadded directive to generate the text "New in version
3.8." (to match with the documentation of other modules).

Automerge-Triggered-By: GH:jaraco.
(cherry picked from commit adf24bd835ed8f76dcc51aa98c8c54275e86965b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoReformat idlelib colorizer (GH-25479)
Miss Islington (bot) [Fri, 23 Apr 2021 03:32:33 +0000 (20:32 -0700)] 
Reformat idlelib colorizer (GH-25479)

Also replace if-then and and-or with conditional expressions.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 702a0885ba3636959d4c176797814937c497b986)

Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
4 years agoAdd more tests. Fix code excerpt. (GH-25549) (GH-25550)
Miss Islington (bot) [Fri, 23 Apr 2021 03:26:56 +0000 (20:26 -0700)] 
Add more tests.  Fix code excerpt. (GH-25549) (GH-25550)

4 years agobpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)
Miss Islington (bot) [Fri, 23 Apr 2021 01:16:16 +0000 (18:16 -0700)] 
bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546)

Reported by Yahor Harunovich.
(cherry picked from commit 14092b5a4ae4caf1c77f685450016a0d1ad0bd6c)

4 years agobpo-39572: Address typo in CHANGELOG. (GH-24999)
Miss Islington (bot) [Fri, 23 Apr 2021 00:58:42 +0000 (17:58 -0700)] 
bpo-39572: Address typo in CHANGELOG. (GH-24999)

(cherry picked from commit 6afb0a8078ff3fc93adc4177565c56f820ca2880)

Co-authored-by: Simon Charette <charette.s@gmail.com>
4 years agobpo-38822: Check specifically for a drive, not just a colon (GH-25540)
Miss Islington (bot) [Thu, 22 Apr 2021 23:56:45 +0000 (16:56 -0700)] 
bpo-38822: Check specifically for a drive, not just a colon (GH-25540)

(cherry picked from commit e07d8098892e85ecc56969d2c9a5afb3ea33ce8f)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid...
Miss Islington (bot) [Thu, 22 Apr 2021 20:30:29 +0000 (13:30 -0700)] 
bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529)

(cherry picked from commit 4696f1285d83dd7b69f459c63e14080b1f87f797)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)
Miss Islington (bot) [Thu, 22 Apr 2021 20:09:56 +0000 (13:09 -0700)] 
bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527)

It would just fail if the path was inaccessible and had a trailing slash. It should fall back to the parent directory's metadata.
(cherry picked from commit fe63a401a9b3ca1751b81b5d6ddb2beb7f3675c1)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agobpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH...
Miss Islington (bot) [Thu, 22 Apr 2021 04:32:40 +0000 (21:32 -0700)] 
bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right section (GH-22608)

(cherry picked from commit 660592f67c0d825b06eb4a38ccc04b34a1f01f00)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
4 years agobpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH...
Miss Islington (bot) [Wed, 21 Apr 2021 23:43:40 +0000 (16:43 -0700)] 
bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510)

(cherry picked from commit dc516ef8395d15da0ab225eb0dceb2e0581f51ca)

Co-authored-by: Steve Dower <steve.dower@python.org>
4 years agoImprove the error message for choices(population, 10) (GH-25267) (GH-25477)
Miss Islington (bot) [Tue, 20 Apr 2021 06:15:50 +0000 (23:15 -0700)] 
Improve the error message for choices(population, 10) (GH-25267) (GH-25477)

4 years agobpo-43837: Reverse order of precedence table to show tightly binding operators first...
Miss Islington (bot) [Mon, 19 Apr 2021 15:56:38 +0000 (08:56 -0700)] 
bpo-43837: Reverse order of precedence table to show tightly binding operators first (GH-25469) (GH-25472)

4 years agoFix typo in a dataclasses comment. (GH-25454)
Miss Islington (bot) [Sat, 17 Apr 2021 14:13:44 +0000 (07:13 -0700)] 
Fix typo in a dataclasses comment. (GH-25454)

(cherry picked from commit 76beadb8ff86eb2bb248bf918bfb20c4069932f4)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
4 years ago[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25451)
Christian Heimes [Sat, 17 Apr 2021 09:35:24 +0000 (11:35 +0200)] 
[3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) (GH-25451)

Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not
copy hostflags from *struct SSL_CTX* to *struct SSL*.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit b467d9a24011992242c95d9157d3455f8a84466b)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437)
Victor Stinner [Fri, 16 Apr 2021 14:06:38 +0000 (16:06 +0200)] 
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437)

Fix a race condition in the SMTP test of test_logging. Don't close a
file descriptor (socket) from a different thread while
asyncore.loop() is polling the file descriptor.

(cherry picked from commit 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603)

4 years ago[3.9] bpo-43723: Revert IDLE doc change (GH-25174)
Terry Jan Reedy [Fri, 16 Apr 2021 06:08:07 +0000 (02:08 -0400)] 
[3.9] bpo-43723: Revert IDLE doc change (GH-25174)

Change threading.activeCount to synonym threading.active_count.

4 years agobpo-20364: Improve sqlite3 placeholder docs (GH-25003)
Miss Islington (bot) [Wed, 14 Apr 2021 13:28:11 +0000 (06:28 -0700)] 
bpo-20364: Improve sqlite3 placeholder docs (GH-25003)

(cherry picked from commit 3386ca0b36327afeef8d7eff277b2aed1030c08d)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43777: Drop description of "pip search" command from tutorial (GH-25287)
Miss Islington (bot) [Wed, 14 Apr 2021 05:34:39 +0000 (22:34 -0700)] 
bpo-43777: Drop description of "pip search" command from tutorial (GH-25287)

(cherry picked from commit 133705b85cc25d1e6684d32f8943ca288fadfda0)

Co-authored-by: Bob Kline <bkline@users.noreply.github.com>
4 years agoRevert "Add ignore file for the abidump check (GH-25323)" (GH-25394)
Pablo Galindo [Tue, 13 Apr 2021 23:26:43 +0000 (00:26 +0100)] 
Revert "Add ignore file for the abidump check (GH-25323)" (GH-25394)

This reverts commit b3fec753bb14e10066be908b93d3448c6b433ea6.

4 years ago[3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391)
Miss Islington (bot) [Tue, 13 Apr 2021 19:14:41 +0000 (12:14 -0700)] 
[3.9] bpo-43811: Test multiple OpenSSL versions on GHA (GH-25360) (GH-25391)

The new checks are only executed when one or more OpenSSL-related files are modified. The checks run a handful of networking and hashing test suites. All SSL checks are optional. This PR also introduces ccache to speed up compilation. In common cases it speeds up configure and compile time from about 90 seconds to less than 30 seconds.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 8fa1489365e7af8b90286c97db55a2dc60a05cde)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years agobpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) (GH-25387)
Miss Islington (bot) [Tue, 13 Apr 2021 12:20:13 +0000 (05:20 -0700)] 
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) (GH-25387)

Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
(cherry picked from commit 54db51c9114ac49030832f5134979ca866ffd21c)

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
4 years ago[3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)
Miss Islington (bot) [Tue, 13 Apr 2021 06:40:52 +0000 (23:40 -0700)] 
[3.9] bpo-43799: OpenSSL 3.0.0: declare OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit a4833883c9b81b6b272cc7c5b67fa1658b65304c)

Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
4 years ago[3.9] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH...
Ethan Furman [Mon, 12 Apr 2021 22:03:29 +0000 (15:03 -0700)] 
[3.9] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are released (GH-25350). (GH-25370)

(cherry picked from commit 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
4 years agobpo-41661: Document os.path.relpath() exception on Windows with different drives...
Miss Islington (bot) [Mon, 12 Apr 2021 16:03:08 +0000 (09:03 -0700)] 
bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346)

(cherry picked from commit 67c0b3d89c4da9750fdb43fc66d3924681b22d2e)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)
Miss Islington (bot) [Mon, 12 Apr 2021 10:24:48 +0000 (03:24 -0700)] 
bpo-41561: Fix testing with OpenSSL 1.0.2 (GH-25355)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 3447750073aff229b049e4ccd6217db2811dcfd1)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)
Miss Islington (bot) [Sun, 11 Apr 2021 13:49:35 +0000 (06:49 -0700)] 
bpo-42967: coerce bytes separator to string in urllib.parse_qs(l) (GH-24818)

* coerce bytes separator to string

* Add news

* Update Misc/NEWS.d/next/Library/2021-03-11-00-31-41.bpo-42967.2PeQRw.rst
(cherry picked from commit b38601d49675d90e1ee6faa47f7adaeca992d02d)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
4 years agoFix description of behaviour of an exception class in 'from' clause (GH-24303) (GH...
Miss Islington (bot) [Sun, 11 Apr 2021 09:27:51 +0000 (02:27 -0700)] 
Fix description of behaviour of an exception class in 'from' clause (GH-24303) (GH-25341)

(cherry picked from commit 79650d0118b0a8861428b9dd063089de405cf137)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
4 years agobpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25333)
Miss Islington (bot) [Sat, 10 Apr 2021 16:19:49 +0000 (09:19 -0700)] 
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25333)

4 years agoAdd ignore file for the abidump check (GH-25323)
Pablo Galindo [Fri, 9 Apr 2021 22:12:08 +0000 (23:12 +0100)] 
Add ignore file for the abidump check (GH-25323)

4 years agobpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)
Miss Islington (bot) [Fri, 9 Apr 2021 20:46:17 +0000 (13:46 -0700)] 
bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)

ripemd160 is not available in OpenSSL 3.0.0's default crypto provider.
It's only present in legacy provider.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2d7fdc90731e132f9d6b43852ee112f25831394b)

Co-authored-by: Christian Heimes <christian@python.org>
4 years ago[3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289)....
Erlend Egeberg Aasland [Fri, 9 Apr 2021 17:46:32 +0000 (19:46 +0200)] 
[3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289). (GH-25294)

* [3.9] Fix possible refleak involving _PyArena_AddPyObject (GH-25289).
(cherry picked from commit c0e11a3ceb9427e09db4224f394c7789bf6deec5)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Update Parser/pegen/pegen.c

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years ago[3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310)
Christian Heimes [Fri, 9 Apr 2021 16:34:39 +0000 (18:34 +0200)] 
[3.9] bpo-43788: Generate version specific _ssl_data.h (GH-25300) (GH-25310)

(cherry picked from commit 150af7543214e1541fa582374502ac1cd70e8eb4)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)
Miss Islington (bot) [Fri, 9 Apr 2021 16:21:54 +0000 (09:21 -0700)] 
bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)
Miss Islington (bot) [Fri, 9 Apr 2021 14:08:32 +0000 (07:08 -0700)] 
bpo-4379: Skip TLS 1.0/1.1 tests under OpenSSL 3.0.0 (GH-25304)

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 5151d642004c59cce58d669be85d9a5e987f51d3)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303)
Miss Islington (bot) [Fri, 9 Apr 2021 13:46:11 +0000 (06:46 -0700)] 
bpo-43789: OpenSSL 3.0.0 Don't call passwd callback again in error case (GH-25303)

(cherry picked from commit d3b73f32ef7c693a6ae8c54eb0e62df3b5315caf)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agoAdd CI step to check changes in the exported ABI (GH-25230)
Pablo Galindo [Fri, 9 Apr 2021 00:34:08 +0000 (01:34 +0100)] 
Add CI step to check changes in the exported ABI (GH-25230)

4 years ago[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)
Miss Islington (bot) [Thu, 8 Apr 2021 23:03:53 +0000 (16:03 -0700)] 
[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)

(cherry picked from commit 1e051a21b7106a93c30b74aad7e1f40d6c0c477b)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
Automerge-Triggered-By: GH:brandtbucher
4 years ago[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
Miss Islington (bot) [Thu, 8 Apr 2021 08:21:35 +0000 (01:21 -0700)] 
[3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)

The previous "Fundamental data types" section says a c_char_p must be bytes (or None).
(cherry picked from commit 14829b09eb652f457cf837836909169746a810f0)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agoFix broken test for MutableSet.pop() (GH-25209) (GH-25269)
Miss Islington (bot) [Wed, 7 Apr 2021 23:56:48 +0000 (16:56 -0700)] 
Fix broken test for MutableSet.pop() (GH-25209) (GH-25269)

4 years ago[3.9] bpo-36540: Improve doc of function definition regarding positional-only argumen...
Saiyang Gou [Wed, 7 Apr 2021 19:32:48 +0000 (12:32 -0700)] 
[3.9] bpo-36540: Improve doc of function definition regarding positional-only arguments (GH-25235) (GH-25259)

(cherry picked from commit 58d72cab89cf9652acc0bf0007aa20b2bcc98499)

Co-authored-by: Saiyang Gou <gousaiyang@163.com>
4 years agobpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3...
Miss Islington (bot) [Wed, 7 Apr 2021 18:17:56 +0000 (11:17 -0700)] 
bpo-43755: Update docs to reflect that lambda is not allowed in `comp_if` since 3.9 (GH-25231) (GH-25233)

4 years agobpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)
Steve Dower [Wed, 7 Apr 2021 17:12:42 +0000 (18:12 +0100)] 
bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
4 years agobpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)
Miss Islington (bot) [Wed, 7 Apr 2021 15:58:04 +0000 (08:58 -0700)] 
bpo-43075: Fix ReDoS in urllib AbstractBasicAuthHandler (GH-24391) (GH-25247)

Fix Regular Expression Denial of Service (ReDoS) vulnerability in
urllib.request.AbstractBasicAuthHandler. The ReDoS-vulnerable regex
has quadratic worst-case complexity and it allows cause a denial of
service when identifying crafted invalid RFCs. This ReDoS issue is on
the client side and needs remote attackers to control the HTTP server.
(cherry picked from commit 7215d1ae25525c92b026166f9d5cac85fb1defe1)

Co-authored-by: Yeting Li <liyt@ios.ac.cn>
Co-authored-by: Yeting Li <liyt@ios.ac.cn>
4 years agobpo-43105: Importlib now resolves relative paths when creating module spec objects...
Steve Dower [Wed, 7 Apr 2021 11:35:36 +0000 (12:35 +0100)] 
bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121)

4 years agoFix blurb for bpo-43176. (GH-25215) (GH-25217)
Miss Islington (bot) [Tue, 6 Apr 2021 15:07:07 +0000 (08:07 -0700)] 
Fix blurb for bpo-43176. (GH-25215) (GH-25217)

(cherry picked from commit 1744c96ebc98b240f2564f75191097704b37244f)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
4 years agobpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213)
Steve Dower [Tue, 6 Apr 2021 15:03:52 +0000 (16:03 +0100)] 
bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213)

Earlier releases were mislabelled and included 1.1.1i again.
The tag/directory name is updated to ensure that builds get the fresh bits. However, the openssl-bin-1.1.1k tag in the repository has been forcibly updated, so fresh builds will be fine even without this change.

4 years agobpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)
Miss Islington (bot) [Tue, 6 Apr 2021 13:46:30 +0000 (06:46 -0700)] 
bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)

When a dataclass inherits from an empty base, all immutability checks are omitted. This PR fixes this and adds tests for it.

Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 376ffc6ac491da74920aed1b8e35bc371cb766ac)

Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
Co-authored-by: Iurii Kemaev <6885137+hbq1@users.noreply.github.com>
4 years agobpo-17305: Link to the third-party idna package. (GH-25208)
Miss Islington (bot) [Tue, 6 Apr 2021 08:19:15 +0000 (01:19 -0700)] 
bpo-17305: Link to the third-party idna package. (GH-25208)

So long as we don't have idna2008 in the standard library, we should at least point people to the third-party solution.
(cherry picked from commit 1d023e374cf96d143b065242131ddc9b889f9a1e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
4 years agobpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH...
Miss Islington (bot) [Mon, 5 Apr 2021 20:11:50 +0000 (13:11 -0700)] 
bpo-20503: Show how isinstance() works with ABC registered classes. (GH-25175) (GH-25202)

4 years agobpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH...
Miss Islington (bot) [Mon, 5 Apr 2021 20:07:38 +0000 (13:07 -0700)] 
bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25200)

Co-Authored-By: Claudiu Popa <pcmanticore@gmail.com>
Automerge-Triggered-By: GH:ericvsmith
(cherry picked from commit 75220674c07abfc90c2cd7862d04cfa2e2354450)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years ago[3.9] Fix typo in turtledemo.two_canvases. (GH-25194)
Miss Islington (bot) [Mon, 5 Apr 2021 17:43:15 +0000 (10:43 -0700)] 
[3.9] Fix typo in turtledemo.two_canvases. (GH-25194)

(cherry picked from commit 4e2ef7084185d2220003b4b5538e3d8190b2dcd6)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agoPost 3.9.4
Łukasz Langa [Sun, 4 Apr 2021 18:39:08 +0000 (20:39 +0200)] 
Post 3.9.4

4 years agoMerge tag 'v3.9.4' into 3.9
Łukasz Langa [Sun, 4 Apr 2021 18:38:59 +0000 (20:38 +0200)] 
Merge tag 'v3.9.4' into 3.9

Python 3.9.4

4 years ago[3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH...
Miss Islington (bot) [Sun, 4 Apr 2021 15:36:21 +0000 (08:36 -0700)] 
[3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs (GH-25183) (GH-25184)

(cherry picked from commit 2b5913b4ee5852a28ca1509478f5582beb3aff7b)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Automerge-Triggered-By: GH:gvanrossum
4 years agoPython 3.9.4 v3.9.4
Łukasz Langa [Sun, 4 Apr 2021 11:04:49 +0000 (13:04 +0200)] 
Python 3.9.4

4 years ago[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)
Gregory P. Smith [Sun, 4 Apr 2021 11:02:29 +0000 (04:02 -0700)] 
[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)

This reverts commit 8b795ab5541d8a4e69be4137dfdc207714270b77.

It changed the PyThreadState structure size, breaking the ABI in 3.9.3.

4 years agobpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178)
Miss Islington (bot) [Sun, 4 Apr 2021 03:05:50 +0000 (20:05 -0700)] 
bpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178)

4 years agoReplace broken example code with correct simpler code. (GH-25162) (GH-25166)
Miss Islington (bot) [Sat, 3 Apr 2021 20:42:43 +0000 (13:42 -0700)] 
Replace broken example code with correct simpler code. (GH-25162) (GH-25166)

4 years agoAdd more tests for the descriptor tutorial (GH-25164) (#25165)
Miss Islington (bot) [Sat, 3 Apr 2021 20:42:28 +0000 (13:42 -0700)] 
Add more tests for the descriptor tutorial (GH-25164) (#25165)

(cherry picked from commit e4c8895ee5457b11f52841b79b51f3c3d6373fef)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
4 years agobpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)
Miss Islington (bot) [Fri, 2 Apr 2021 22:26:32 +0000 (15:26 -0700)] 
bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)

Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has.

Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit b2a91e0c9ee18b50cc86b21211c2258520a9f5d0)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
4 years agoPost 3.9.3
Łukasz Langa [Fri, 2 Apr 2021 17:39:11 +0000 (19:39 +0200)] 
Post 3.9.3

4 years agoMerge tag 'v3.9.3' into 3.9
Łukasz Langa [Fri, 2 Apr 2021 17:38:57 +0000 (19:38 +0200)] 
Merge tag 'v3.9.3' into 3.9

Python 3.9.3

4 years ago[3.9] bpo-26053: Fix args echoed by pdb run command (GH-25149)
Irit Katriel [Fri, 2 Apr 2021 11:16:55 +0000 (12:16 +0100)] 
[3.9] bpo-26053: Fix args echoed by pdb run command  (GH-25149)

* bpo-26053: Fix args echoed by pdb run command (GH-22033)

(cherry picked from commit 652bfdee9495dca241d48278742fe035b7a82bdb)

* bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)

(cherry picked from commit bd4ab8e73906a4f12d5353f567228b7c7497baf7)

4 years agoPython 3.9.3 v3.9.3
Łukasz Langa [Fri, 2 Apr 2021 09:51:53 +0000 (11:51 +0200)] 
Python 3.9.3

4 years agobpo-43700: Replace Zulip badge with Discourse badge (GH-25141)
Miss Islington (bot) [Fri, 2 Apr 2021 03:58:07 +0000 (20:58 -0700)] 
bpo-43700: Replace Zulip badge with Discourse badge (GH-25141)

Automerge-Triggered-By: GH:zware
(cherry picked from commit bef7b26f7229f8b7cde843118a7bc7e2b00f0372)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
4 years agobpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140)
Miss Islington (bot) [Fri, 2 Apr 2021 00:06:30 +0000 (17:06 -0700)] 
bpo-43677: Fix a minor error in Doc/howto/descriptor.rst (GH-25123) (#25140)

4 years agoDoc: io: Remove "In-memory streams" section (GH-24927)
Miss Islington (bot) [Thu, 1 Apr 2021 06:11:49 +0000 (23:11 -0700)] 
Doc: io: Remove "In-memory streams" section (GH-24927)

(cherry picked from commit b045cdaf341f80b7d1e4804b932b6e415600c2e1)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-42840: Document providing kwargs to type. (GH-24173)
Miss Islington (bot) [Thu, 1 Apr 2021 00:10:36 +0000 (17:10 -0700)] 
bpo-42840: Document providing kwargs to type. (GH-24173)

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 72fcd14a82369ed32a5846d76f50e3026cf4eec2)

Co-authored-by: Erik Soma <stillusingirc@gmail.com>
4 years agobpo-37945: Fix test_locale.test_getsetlocale_issue1813() (GH-25110) (GH-25112)
Miss Islington (bot) [Wed, 31 Mar 2021 11:52:14 +0000 (04:52 -0700)] 
bpo-37945: Fix test_locale.test_getsetlocale_issue1813() (GH-25110) (GH-25112)

Skip the test if setlocale() fails.
(cherry picked from commit f3ab670fea75ebe177e3412a5ebe39263cd428e3)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 years agobpo-42225: IDLE - document two unix-related problems. (GH-25078)
Miss Islington (bot) [Wed, 31 Mar 2021 05:44:26 +0000 (22:44 -0700)] 
bpo-42225: IDLE - document two unix-related problems. (GH-25078)

1. Bad IP masquerade rules can prevent startup.
2. X cannot handle some complex colored chars.
(cherry picked from commit 1b4a9c7956d5dc64f8002f62bf0faae2d1892f90)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 years agobpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)
Miss Islington (bot) [Tue, 30 Mar 2021 21:36:25 +0000 (14:36 -0700)] 
bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751)

(cherry picked from commit 51a85ddce8b336addcb61b96f04c9c5edef07296)

Co-authored-by: Alex Prengère <2138730+alexprengere@users.noreply.github.com>
4 years ago[3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088)
Christian Heimes [Tue, 30 Mar 2021 08:58:06 +0000 (10:58 +0200)] 
[3.9] bpo-43631: Update to OpenSSL 1.1.1k (GH-25024) (GH-25088)

Signed-off-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran.
(cherry picked from commit a54fc683f237d8f0b6e999a63aa9b8c0a45b7fef)

Co-authored-by: Christian Heimes <christian@python.org>
4 years agobpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)
Miss Islington (bot) [Tue, 30 Mar 2021 07:51:55 +0000 (00:51 -0700)] 
bpo-43637: Fix a possible memory leak in winreg.SetValueEx() (GH-25038)

(cherry picked from commit dfeec347f21b86879ba8f27f567bb275b243f1bc)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
4 years agobpo-33164: blake2: Fix Coverity scan (GH-25060)
Miss Islington (bot) [Tue, 30 Mar 2021 04:36:39 +0000 (21:36 -0700)] 
bpo-33164: blake2: Fix Coverity scan (GH-25060)

(cherry picked from commit 068ebf9729d440cef03e4c57e3db83c851146172)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
4 years agobpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr...
Miss Islington (bot) [Mon, 29 Mar 2021 23:24:33 +0000 (16:24 -0700)] 
bpo-43660: Fix crash when displaying exceptions with custom values for sys.stderr (GH-25075) (GH-25083)

(cherry picked from commit 09b90a037d18f5d4acdf1b14082e57bda78e85d3)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
4 years agobpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)
Miss Islington (bot) [Mon, 29 Mar 2021 19:37:32 +0000 (12:37 -0700)] 
bpo-43562: fix test_ssl to skip on unreachable network (GH-24937) (GH-25046)

This test checks result code of the connection directly, so it never raises an exception that can be suppressed by `support.transient_internet`. Directly support skipping the test in case of unreachable network.
(cherry picked from commit 29c451c6989c3c94fa0a9facf187c24f3cbf2420)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Carl Meyer <carl@oddbird.net>
4 years agobpo-43659: Fix test_curses on AIX (GH-25074)
Miss Islington (bot) [Mon, 29 Mar 2021 19:31:01 +0000 (12:31 -0700)] 
bpo-43659:  Fix test_curses on AIX (GH-25074)

curses.update_lines_cols() is only defined when the curses library
provides either resizeterm() or resize_term() functions which are optional
and are not provided on AIX.
(cherry picked from commit c8b5738810516df5722caf049003e9b319427bec)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
4 years agobpo-35930: Raising an exception raised in a "future" instance will create reference...
Miss Islington (bot) [Mon, 29 Mar 2021 17:53:54 +0000 (10:53 -0700)] 
bpo-35930: Raising an exception raised in a "future" instance will create reference cycles (GH-24995) (#25070)

Before: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0002.png

After: https://lists.es.python.org/pipermail/general/attachments/20201229/0c14bc58/attachment-0003.png
(cherry picked from commit 32430aadadf6e012e39167d3c18a24e49fb84874)

Co-authored-by: Jesús Cea <jcea@jcea.es>
Co-authored-by: Jesús Cea <jcea@jcea.es>
4 years agobpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. ...
Miss Islington (bot) [Mon, 29 Mar 2021 14:43:02 +0000 (07:43 -0700)] 
bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. (GH-25057)

(cherry picked from commit c1b073a630bb731de18bb17afb2b8b1388b92a72)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 years agobpo-42988: Remove the pydoc getfile feature (GH-25015)
Miss Islington (bot) [Mon, 29 Mar 2021 13:08:00 +0000 (06:08 -0700)] 
bpo-42988: Remove the pydoc getfile feature (GH-25015)

CVE-2021-3426: Remove the "getfile" feature of the pydoc module which
could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python
modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
(cherry picked from commit 9b999479c0022edfc9835a8a1f06e046f3881048)

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