]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Irit Katriel [Wed, 12 May 2021 14:06:34 +0000 (15:06 +0100)]
[3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26065)
Co-authored-by: Szymon Trapp
(cherry picked from commit
5010c044c73ee55d0fd578cfecd3f4c3f01a4140 )
Co-authored-by: Karl Dubost <karl+github@la-grange.net>
Miss Islington (bot) [Wed, 12 May 2021 14:02:46 +0000 (07:02 -0700)]
bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066)
* fix subclass error
* Update 2021-05-09-22-52-34.bpo-44089.IoANsN.rst
(cherry picked from commit
2b458c1dba4058c808fde25226bb2d91c5a909ca )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Wed, 12 May 2021 10:25:54 +0000 (03:25 -0700)]
bpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26057)
Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com>
(cherry picked from commit
6574334a68aa324394a6fd1f855ecbad20432b1e )
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Miss Islington (bot) [Tue, 11 May 2021 23:58:18 +0000 (16:58 -0700)]
Correct the changelog entry for the syntax error message for multiple exception types (GH-26038)
(cherry picked from commit
c1df8808e054bbe4fe66f35ccc0f88d8b292778a )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Tue, 11 May 2021 23:48:05 +0000 (16:48 -0700)]
bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (GH-25438) (#26050)
Co-authored-by: Thomas Kluyver <takowl@gmail.com>
(cherry picked from commit
8563a7052ccd98e6a381d361664ce567afd5eb6e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Tue, 11 May 2021 23:18:13 +0000 (16:18 -0700)]
Fix import of HTTPError (GH-22304) (GH-26047)
Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit
5fedf71439187f00c661b16b80d398b74b00390e )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Miss Islington (bot) [Tue, 11 May 2021 22:23:40 +0000 (15:23 -0700)]
bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)
(cherry picked from commit
23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd )
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Miss Islington (bot) [Tue, 11 May 2021 20:55:15 +0000 (13:55 -0700)]
bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH-26040)
* Document os-system, subprocess Patch
* Update Doc/library/os.rst
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
5f2eb87f2893c5e77ade4d662cebcce59d3f2c2f )
Co-authored-by: uniocto <serit142sa33go@gmail.com>
Co-authored-by: uniocto <serit142sa33go@gmail.com>
Miss Islington (bot) [Tue, 11 May 2021 18:19:27 +0000 (11:19 -0700)]
bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192) (#26035)
(cherry picked from commit
12e7d10dfd28d4e26304e2c06b2e41c7418ec6f3 )
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Miss Islington (bot) [Tue, 11 May 2021 02:20:22 +0000 (19:20 -0700)]
Doc: http.server: directory is not a class attribute, but an argument. (GH-26017)
* Doc: http.server: directory is not a class attribute, but an argument.
(cherry picked from commit
d1b81574edd75e33ae85c525ac988ce772675a07 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Mon, 10 May 2021 18:58:42 +0000 (11:58 -0700)]
bpo-44074: let patchcheck infer the base branch name (GH-25991)
(cherry picked from commit
21fbbb98bac8bfe56f8b931258c36750e84f9285 )
Co-authored-by: Leonardo Lai <leonardo.lai@live.com>
Miss Islington (bot) [Mon, 10 May 2021 13:38:46 +0000 (06:38 -0700)]
bpo-43558: Add note about base class initialization to dataclasses doc (GH-25967) (GH-26018)
(cherry picked from commit
2a031723eefcf6f1d678bbb4f6018610d43623c4 )
Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
Co-authored-by: dhoekstra2000 <douwe.hoekstra2512@gmail.com>
Miss Islington (bot) [Sun, 9 May 2021 21:13:50 +0000 (14:13 -0700)]
bpo-43149: Correct the syntax error message for multiple exception types (GH-25996) GH-25997)
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit
6692dc1ca99fb34a19d0a4b93cf8e10619490001 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Sun, 9 May 2021 07:19:43 +0000 (00:19 -0700)]
Revert test for Tix deprecation warning (GH-26005)
Added in bpo-41730 (GH-22186), the test apparently causes refleaks. The
test isn't worth hunting them down, so it's simply reverted.
This partially reverts commit
4a2d98a1e98de25c5114d11fcb0f9fedbb057e51 .
(cherry picked from commit
8e8307d70bb9dc18cfeeed3277c076309b27515e )
Co-authored-by: Zachary Ware <zach@python.org>
Miss Islington (bot) [Sun, 9 May 2021 02:22:48 +0000 (19:22 -0700)]
Fix a word in dataclasses docs. (GH-26003) (GH-26004)
(cherry picked from commit
801497a1152504f3181b495c0271bb9ff99df3d1 )
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Pablo Galindo [Sat, 8 May 2021 16:15:01 +0000 (17:15 +0100)]
bpo-32924: Fix the Show Source url in the documentation (GH-25994)
Miss Islington (bot) [Sat, 8 May 2021 12:20:48 +0000 (05:20 -0700)]
bpo-42725: mention the changes on what's new (GH-25974)
(cherry picked from commit
17229ab4a2fd5db20d52ef0f3aca2a8b51869c43 )
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Miss Islington (bot) [Sat, 8 May 2021 09:09:29 +0000 (02:09 -0700)]
[3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965) (GH-25983)
The error string on VxWorks is "no such file or directory" for FileNotFoundError. That is, the 1st letter of the error string has lower case.
(cherry picked from commit
b063b02eabf91bfd4edc0f3fde7ce8f0ebb392c4 )
Co-authored-by: pxinwr <peixing.xin@windriver.com>
Automerge-Triggered-By: GH:gpshead
Miss Islington (bot) [Sat, 8 May 2021 06:58:53 +0000 (23:58 -0700)]
Fix make libainstall. (GH-25980)
Initial patch by Benno Leslie.
(cherry picked from commit
80d250d68cf3bb511fd862169c681b28028499c2 )
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Pablo Galindo [Sat, 8 May 2021 02:43:43 +0000 (03:43 +0100)]
Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25978)
Miss Islington (bot) [Sat, 8 May 2021 00:35:25 +0000 (17:35 -0700)]
bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)
A C function accessible by the default exception handler, but not by python code,
finds the existing name closest to the name causing a name or attribute error. For
such errors, call the default handler after capturing stderr and retrieve its message line.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit
092f9ddb5e85665552c8207972cd393d492f764e )
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 May 2021 20:40:09 +0000 (13:40 -0700)]
bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)
(cherry picked from commit
b2ec37a7224318d466e0877790ed740ce8b4867d )
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Miss Islington (bot) [Fri, 7 May 2021 16:14:48 +0000 (09:14 -0700)]
bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)
Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
Co-authored-by: Zachary Ware <zach@python.org>
(cherry picked from commit
4a2d98a1e98de25c5114d11fcb0f9fedbb057e51 )
Co-authored-by: wyz23x2 <52805709+wyz23x2@users.noreply.github.com>
Miss Islington (bot) [Fri, 7 May 2021 14:13:15 +0000 (07:13 -0700)]
Simple Enhancement. Add missing return statements in ftplib documentation. (GH-25968) (#25969)
(cherry picked from commit
b32c8e97951db46484ba3b646b988bcdc4062199 )
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
Miss Islington (bot) [Fri, 7 May 2021 03:18:42 +0000 (20:18 -0700)]
bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)
`convertitem()` raises `SystemError` when 'GH-' is used without `PY_SSIZE_T_CLEAN`.
This commit makes `skipitem()` raise it too.
(cherry picked from commit
4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0 )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Thu, 6 May 2021 21:54:32 +0000 (14:54 -0700)]
Fix minor grammar problems in dataclasses documentation (GH-25948) (GH-25958)
Some missing words; some odd word choices.
(cherry picked from commit
ee8e7c2fa950f88ba2c33035bea7aed7aaf0cb77 )
Co-authored-by: Scott Noyes <snoyes@gmail.com>
Co-authored-by: Scott Noyes <snoyes@gmail.com>
Miss Islington (bot) [Thu, 6 May 2021 19:49:26 +0000 (12:49 -0700)]
bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) (GH-25950)
(cherry picked from commit
329a47f0524e9d3f43f1e28c4f9e7c088662c030 )
Co-authored-by: Linus Groh <mail@linusgroh.de>
Miss Islington (bot) [Thu, 6 May 2021 19:48:36 +0000 (12:48 -0700)]
bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705)
* Set content-length for simple http server 301s
When http.server.SimpleHTTPRequestHandler sends a 301 (Moved
Permanently) due to a missing file, it does not set a Content-Length
of 0. Unfortunately, certain clients can be left waiting for the
connection to be closed in this circumstance, even though no body
will be sent. At time of writing, both curl and Firefox demonstrate
this behavior.
* Test Content-Length on simple http server redirect
When serving a redirect, the SimpleHTTPRequestHandler will now send
`Content-Length: 0`. Several tests for http.server already cover
various behaviors and checks including redirection. This change only
adds one check for the expected Content-Length on the simplest case
for a redirect.
* Add news entry for SimpleHTTPRequestHandler fix
* Clarify the specific kind of 301
Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
(cherry picked from commit
fb427255614fc1f740e7785554c1da8ca39116c2 )
Co-authored-by: Stephen Rosen <sirosen@globus.org>
Miss Islington (bot) [Thu, 6 May 2021 19:46:08 +0000 (12:46 -0700)]
docs: clearly document that ":GH-X" string formatting results in "0X..." (GH-25941)
* clearly document that ":GH-X" string formatting results in "0X..."
* put back the "serial comma"
(cherry picked from commit
92ceb1c8402422412fcbb98ca19448677c667c3c )
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
Miss Islington (bot) [Thu, 6 May 2021 15:26:55 +0000 (08:26 -0700)]
Eliminate duplicated calculations and unnecessary work for linear regression (GH-25922) (GH-25945)
Miss Islington (bot) [Thu, 6 May 2021 14:53:11 +0000 (07:53 -0700)]
bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)
Also use new make target to install FIPS provider.
(cherry picked from commit
e8525567dd325527e00b3c4ce7c4ce31ff3f1a8c )
Co-authored-by: Christian Heimes <christian@python.org>
Mark Shannon [Thu, 6 May 2021 12:38:50 +0000 (13:38 +0100)]
Correct location for syntax error in try-except (GH-25939)
Miss Islington (bot) [Wed, 5 May 2021 23:14:28 +0000 (16:14 -0700)]
bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 Continue (GH-25916) (GH-25931)
Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit
47895e31b6f626bc6ce47d175fe9d43c1098909d )
Co-authored-by: Gen Xu <xgbarry@gmail.com>
Miss Islington (bot) [Wed, 5 May 2021 23:04:38 +0000 (16:04 -0700)]
bpo-43882 Remove the newline, and tab early. From query and fragments. (GH-25936)
(cherry picked from commit
985ac016373403e8ad41f8d563c4355ffa8d49ff )
Miss Islington (bot) [Wed, 5 May 2021 22:05:22 +0000 (15:05 -0700)]
bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)
Contributed-By: Matthias Klose
Automerge-Triggered-By: GH:tiran
(cherry picked from commit
da5c808fb50d34bc2e180d9481706072f33025da )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 5 May 2021 18:15:25 +0000 (11:15 -0700)]
bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI (GH-25920)
(cherry picked from commit
cf86996a8e5965ff587040d0c2831c3132081a21 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Wed, 5 May 2021 18:01:21 +0000 (11:01 -0700)]
bpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926)
Ignore objects that inspect.unwrap throws due to
too many wrappers. This is a very rare case, however
it can easily be surfaced when a module under doctest
imports unitest.mock.call into its namespace.
We simply skip any object that throws this exception.
This should handle the majority of cases.
(cherry picked from commit
565a31804c1139fe7886f38af3b3923653b0c1b3 )
Co-authored-by: Alfred Perlstein <alfred@fb.com>
Miss Islington (bot) [Wed, 5 May 2021 08:54:05 +0000 (01:54 -0700)]
bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25910)
(cherry picked from commit
96d5c7038b06e93d20822d28ed42a2183f876857 )
Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
Miss Islington (bot) [Wed, 5 May 2021 04:39:09 +0000 (21:39 -0700)]
Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)
Miss Islington (bot) [Tue, 4 May 2021 21:01:42 +0000 (14:01 -0700)]
bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)
The address tuple for CAN_RAW no longer returns the address family
after the introduction of CAN ISO-TP support in
a30f6d45ac3 . However,
updating test_socket.CANTest.testSendFrame was missed as part of the
change, so the test incorrectly attempts to index past the last tuple
item to retrieve the address family.
This removes the now-redundant check for equality against socket.AF_CAN,
as the tuple will not contain the address family.
(cherry picked from commit
355bae88822bee4de6092b63d69c5a5dad393a16 )
Co-authored-by: karl ding <karlding@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 May 2021 19:57:35 +0000 (12:57 -0700)]
Clarify rx parameter of compileall functions (GH-25857)
(cherry picked from commit
09490298d4485e9322edc6e1e8e15eb66c586164 )
Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 May 2021 18:55:33 +0000 (11:55 -0700)]
Fix inconsistent fsum vs sum and fmean vs mean (GH-25898) (GH-25899)
Miss Islington (bot) [Tue, 4 May 2021 13:39:16 +0000 (06:39 -0700)]
Fix typo in ast.py (GH-25740)
parantheses -> parentheses
(cherry picked from commit
9ee8448243e776d2a07a9868e9795bbb2c828f9c )
Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 13:24:46 +0000 (06:24 -0700)]
fix enum.property reference in docs (GH-25875) (#25876)
(cherry picked from commit
6fee0835cb00677acd341751f831ca1af128f4c9 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 13:21:40 +0000 (06:21 -0700)]
bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)
(cherry picked from commit
b451bc8d7e5e5a1df46fbecb6cf50af942cc401e )
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Miss Islington (bot) [Tue, 4 May 2021 13:17:40 +0000 (06:17 -0700)]
bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) (#25893)
This documents in the tutorial docs the behavior of a finally clause in
case it should re-raise an exception but contains a
return/break/continue statement.
(cherry picked from commit
a0b9915a8be98427432e13d8eb2207a8b9824179 )
Co-authored-by: Roberto Hueso <robertohueso96@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 12:44:14 +0000 (05:44 -0700)]
Fix error in Enum documentation example code that was referring to the wrong enum. (GH-25837) (#25891)
(cherry picked from commit
33d9bf298b7672c5a09f8c0d80af00a4ec383e4a )
Co-authored-by: krisaoe <krisaoe@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 May 2021 12:29:56 +0000 (05:29 -0700)]
Add C-API tests (GH-25886) (#25887)
(cherry picked from commit
2f5baa17504feb9a7613bac32fdceed4894434de )
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Miss Islington (bot) [Tue, 4 May 2021 11:36:50 +0000 (04:36 -0700)]
bpo-44025: Clarify when '_' is a keyword. (GH-25873)
In match statements, in case patterns and nowhere else.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit
3b200b2aa648fcc8a2673871807c1463afe00195 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 4 May 2021 11:04:46 +0000 (04:04 -0700)]
Copyedits to 3.10 What's New (GH-25787) (#25883)
Co-authored-by: Dominic Davis-Foster <dominic@davis-foster.co.uk>
(cherry picked from commit
f6d7abc6e72294c5573709cca78ae252e03ebe3d )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 09:51:33 +0000 (02:51 -0700)]
bpo-38352: Add to typing.__all__ (GH-25821) (#25884)
This adds IO, TextIO, BinaryIO, Match, and Pattern.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit
b11557973476963f7c0fd0041eac175bc0d4c514 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 09:17:35 +0000 (02:17 -0700)]
bpo-44001: improve Literal documentation (GH-25877) (#25882)
(cherry picked from commit
87109f4d85c93a870ee8aa0d2b394547d4636b17 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 07:08:09 +0000 (00:08 -0700)]
update docstring for `win_getpass` to reflect code changes (GH-24967)
The code was updated in
https://github.com/python/cpython/commit/
0ec88b33d093db00ec68b220247681354a650f0c
but the docstring was left untouched.
=> updated the docstring to reflect the code changes
(cherry picked from commit
d4222ea6b0bb3cf7d40f23b370dc9eea5f9b7004 )
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Miss Islington (bot) [Tue, 4 May 2021 02:45:30 +0000 (19:45 -0700)]
bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25872)
Miss Islington (bot) [Tue, 4 May 2021 02:17:23 +0000 (19:17 -0700)]
fix enum and backslash warnings (GH-25861) (GH-25871)
- Enum warning in test_faulthandler
- backslash warning in test_ipaddress
(cherry picked from commit
652bcd9f9cd2ed89b5fa958f8456556aa43b48cc )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Pablo Galindo [Tue, 4 May 2021 01:15:11 +0000 (02:15 +0100)]
Add CI step to check changes in the exported ABI (GH-25868)
Miss Islington (bot) [Tue, 4 May 2021 01:07:43 +0000 (18:07 -0700)]
bpo-43822: Prioritize tokenizer errors over custom syntax errors when raising parser exceptions (GH-25866)
(cherry picked from commit
9142088e7454a392b69a627863b235ecc32aea54 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Tue, 4 May 2021 01:06:45 +0000 (18:06 -0700)]
bpo-43822: Prioritize tokenizer errors over custom syntax errors when raising parser exceptions (GH-25866)
(cherry picked from commit
9142088e7454a392b69a627863b235ecc32aea54 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Pablo Galindo [Tue, 4 May 2021 00:47:28 +0000 (01:47 +0100)]
Update CI files to build the 3.10 branch
Pablo Galindo [Mon, 3 May 2021 20:16:33 +0000 (21:16 +0100)]
Post 3.10.0b1
Pablo Galindo [Mon, 3 May 2021 19:33:17 +0000 (20:33 +0100)]
Python 3.10.0b1
Shreyan Avigyan [Mon, 3 May 2021 19:27:47 +0000 (00:57 +0530)]
Remove Enum warnings from test_httpservers (GH-25844)
Dennis Sweeney [Mon, 3 May 2021 15:47:27 +0000 (11:47 -0400)]
bpo-38530: Refactor and improve AttributeError suggestions (GH-25776)
- Make case-swaps half the cost of any other edit
- Refactor Levenshtein code to not use memory allocator, and to bail early on no match.
- Add comments to Levenshtein distance code
- Add test cases for Levenshtein distance behind a debug macro
- Set threshold to `(name_size + item_size + 3) * MOVE_COST / 6`.
- Reasoning: similar to `difflib.SequenceMatcher.ratio()` >= 2/3:
```
"Multiset Jaccard similarity" >= 2/3
matching letters / total letters >= 2/3
(name_size - distance + item_size - distance) / (name_size + item_size) >= 2/3
1 - (2*distance) / (name_size + item_size) >= 2/3
1/3 >= (2*distance) / (name_size + item_size)
(name_size + item_size) / 6 >= distance
With rounding:
(name_size + item_size + 3) // 6 >= distance
```
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Christian Heimes [Mon, 3 May 2021 15:45:02 +0000 (17:45 +0200)]
bpo-43943: ssl tests: Increase server socket timeout, backlog, debugging (GH-25850)
Signed-off-by: Christian Heimes <christian@python.org>
Pablo Galindo [Mon, 3 May 2021 15:21:59 +0000 (16:21 +0100)]
bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848)
This reverts commit
5fb06edbbb769561e245d0fe13002bab50e2ae60 and all
subsequent dependent commits.
Pablo Galindo [Mon, 3 May 2021 15:20:46 +0000 (16:20 +0100)]
bpo-43754: Fix compiler warning in Python/compile.c (GH-25855)
This fixes the following warning:
'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
Pablo Galindo [Mon, 3 May 2021 14:50:24 +0000 (15:50 +0100)]
bpo-43916: Move the _PyStructSequence_InitType function to the internal API (GH-25854)
Julien Palard [Mon, 3 May 2021 09:20:54 +0000 (11:20 +0200)]
Doc: Fix random.uniform example comment. (GH-25784)
Andrew Svetlov [Mon, 3 May 2021 09:06:17 +0000 (12:06 +0300)]
Increase test timeout (GH-25842)
Batuhan Taskaya [Mon, 3 May 2021 07:43:00 +0000 (10:43 +0300)]
bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583)
Christian Heimes [Mon, 3 May 2021 07:38:56 +0000 (09:38 +0200)]
bpo-44011: Fix asyncio tests without ssl module (GH-25840)
Signed-off-by: Christian Heimes <christian@python.org>
Eric V. Smith [Mon, 3 May 2021 07:24:53 +0000 (03:24 -0400)]
bpo-44015: dataclasses should allow KW_ONLY to be specified only once per class (GH-25841)
bpo-44015: Raise a TypeError if KW_ONLY is specified more than once.
Eric V. Smith [Mon, 3 May 2021 06:33:34 +0000 (02:33 -0400)]
dataclasses docs: add a missing word. (GH-25839)
Eric V. Smith [Mon, 3 May 2021 05:55:13 +0000 (01:55 -0400)]
More clarification of kw_only args. (GH-25838)
Also, clarify that the dataclass decorator is what raises an error for some mutable defaults.
Ned Deily [Mon, 3 May 2021 05:02:13 +0000 (01:02 -0400)]
Update macOS installer welcome and readme for 3.10b1 (GH-25835)
Ned Deily [Mon, 3 May 2021 04:23:54 +0000 (00:23 -0400)]
bpo-42362: use clang name on 10.9 builds as well (GH-25834)
Raymond Hettinger [Mon, 3 May 2021 04:07:29 +0000 (21:07 -0700)]
Fix invalid markup (#25833)
Ronald Oussoren [Mon, 3 May 2021 03:43:52 +0000 (05:43 +0200)]
bpo-42235: [macOS] Use LTO/PGO in build-installer.py with new enough compilers (GH-23079)
With recent enough compilers we can build binaries with
LTO/PGO on macOS. This patch enables this when building on
macOS 10.15 or later (Xcode 11 or later).
Raymond Hettinger [Mon, 3 May 2021 03:19:51 +0000 (20:19 -0700)]
bpo-25478: Add total() method to collections.Counter (GH-25829)
Ned Batchelder [Mon, 3 May 2021 02:58:57 +0000 (19:58 -0700)]
bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785)
Narrow search to match contents of SDKs, namely only files in ``/System/Library``,
``/System/IOSSupport``, and ``/usr`` other than ``/usr/local``. Previously,
anything under ``/System`` was assumed to be in an SDK which causes problems
with the new file system layout in 10.15+ where user file systems may appear
to be mounted under ``/System``. Paths in ``/Library`` were also
incorrectly treated as SDK locations.
Co-authored-by: Ned Deily <nad@python.org>
Tal Einat [Mon, 3 May 2021 02:27:38 +0000 (05:27 +0300)]
bpo-37903: IDLE: add shell sidebar mouse interactions (GH-25708)
Left click and drag to select lines. With selection, right click for context menu with copy and copy-with-prompts.
Also add copy-with-prompts to the text-box context menu.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Ronald Oussoren [Mon, 3 May 2021 01:29:03 +0000 (03:29 +0200)]
bpo-42362: Switch to clang/clang++ as the default compiler in build-installer.py (GH-23298)
This change is cosmetic only, the "gcc" command in Apple's compiler tools is an alias for "clang" (and using non-system tooling for building the installer is not supported by this script).
Automerge-Triggered-By: GH:ned-deily
Eric V. Smith [Mon, 3 May 2021 01:20:50 +0000 (21:20 -0400)]
More work on documenting dataclass keyword-only fields. (GH-25828)
Erlend Egeberg Aasland [Mon, 3 May 2021 00:37:35 +0000 (02:37 +0200)]
bpo-43851: Build SQLite with SQLITE_OMIT_AUTOINIT on macOS (GH-25413)
Ned Deily [Mon, 3 May 2021 00:28:43 +0000 (20:28 -0400)]
bpo-43568: Drop support for MACOSX_DEPLOYMENT_TARGET < 10.3 (GH-25827)
Only complain if the config target is >= 10.3 and the current target is
< 10.3. The check was originally added to ensure that incompatible
LDSHARED flags are not used, because -undefined dynamic_lookup is
used when building for 10.3 and later, and is not supported on older OS
versions. Apart from that, there should be no problem in general
with using an older target.
Authored-by: Joshua Root <jmr@macports.org>
Mark Shannon [Sun, 2 May 2021 23:38:22 +0000 (00:38 +0100)]
bpo-43977: Make sure that tp_flags for pattern matching are inherited correctly. (GH-25813)
Brandt Bucher [Sun, 2 May 2021 22:35:00 +0000 (15:35 -0700)]
bpo-43977: Document the new pattern matching type flags (GH-25734)
Erlend Egeberg Aasland [Sun, 2 May 2021 22:10:51 +0000 (00:10 +0200)]
bpo-43434: Clean up sqlite3.connect() after GH-25818 (GH-25823)
Andrew Svetlov [Sun, 2 May 2021 21:34:15 +0000 (00:34 +0300)]
bpo-44011: New asyncio ssl implementation (#17975)
Erlend Egeberg Aasland [Sun, 2 May 2021 21:25:17 +0000 (23:25 +0200)]
bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ (GH-25818)
Jason R. Coombs [Sun, 2 May 2021 21:03:40 +0000 (17:03 -0400)]
bpo-43926: Cleaner metadata with PEP 566 JSON support. (GH-25565)
* bpo-43926: Cleaner metadata with PEP 566 JSON support.
* Add blurb
* Add versionchanged and versionadded declarations for changes to metadata.
* Use descriptor for PEP 566
Brandt Bucher [Sun, 2 May 2021 20:02:10 +0000 (13:02 -0700)]
bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)
Zackery Spytz [Sun, 2 May 2021 17:29:15 +0000 (10:29 -0700)]
bpo-43990: Fix the footnote ordering in the operator precedence docs (GH-25805)
Footnotes 5 and 6 were in the wrong order.
Shreyan Avigyan [Sun, 2 May 2021 15:43:50 +0000 (21:13 +0530)]
bpo-43997: Add versionadded directives for to match_args, kw_only, and slots in dataclasses.dataclasses documentation (GH-25803)
Christian Heimes [Sun, 2 May 2021 14:38:02 +0000 (16:38 +0200)]
bpo-38820: Add ssl, hashlib, and hmac changes to whatsnew 3.10 (GH-25817)
Signed-off-by: Christian Heimes <christian@python.org>
Christian Heimes [Sun, 2 May 2021 12:00:35 +0000 (14:00 +0200)]
bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated (GH-25099)
Reverts commit
e653d4d8e820a7a004ad399530af0135b45db27a and makes
parsing even more strict. Like socket.inet_pton() any leading zero
is now treated as invalid input.
Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Zackery Spytz [Sun, 2 May 2021 10:40:01 +0000 (03:40 -0700)]
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (#8721)
Embedded nulls would cause a ValueError to be raised. Thanks go to
Eryk Sun for their analysis.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Ned Deily [Sun, 2 May 2021 09:19:07 +0000 (05:19 -0400)]
bpo-41100: Update Misc/ACKS (GH-25808)
Ned Deily [Sun, 2 May 2021 08:48:29 +0000 (04:48 -0400)]
bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs (GH-25804)
This allows reliably forcing macOS universal2 framework builds
to run under Rosetta 2 Intel-64 emulation on Apple Silicon Macs
if needed for testing or when universal2 wheels are not yet
available.
Christian Heimes [Sun, 2 May 2021 07:47:45 +0000 (09:47 +0200)]
bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792)
Signed-off-by: Christian Heimes <christian@python.org>