summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix minor grammar problems in dataclasses documentation (GH-25948) (GH-25958)Miss Islington (bot)2021-05-061-7/+7
| | | | | | | | 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>
* bpo-44059: Register the SerenityOS Browser in the webbrowser module ↵Miss Islington (bot)2021-05-063-0/+6
| | | | | | | (GH-25947) (GH-25950) (cherry picked from commit 329a47f0524e9d3f43f1e28c4f9e7c088662c030) Co-authored-by: Linus Groh <mail@linusgroh.de>
* bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler ↵Miss Islington (bot)2021-05-063-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* docs: clearly document that ":GH-X" string formatting results in "0X..." ↵Miss Islington (bot)2021-05-061-2/+4
| | | | | | | | | | (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>
* Eliminate duplicated calculations and unnecessary work for linear regression ↵Miss Islington (bot)2021-05-061-2/+7
| | | | (GH-25922) (GH-25945)
* bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)Miss Islington (bot)2021-05-062-45/+12
| | | | | | Also use new make target to install FIPS provider. (cherry picked from commit e8525567dd325527e00b3c4ce7c4ce31ff3f1a8c) Co-authored-by: Christian Heimes <christian@python.org>
* Correct location for syntax error in try-except (GH-25939)Mark Shannon2021-05-063-2/+4
|
* bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 ↵Miss Islington (bot)2021-05-053-18/+32
| | | | | | | | | | 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>
* bpo-43882 Remove the newline, and tab early. From query and fragments. ↵Miss Islington (bot)2021-05-052-11/+21
| | | | | (GH-25936) (cherry picked from commit 985ac016373403e8ad41f8d563c4355ffa8d49ff)
* bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)Miss Islington (bot)2021-05-052-0/+7
| | | | | | | | Contributed-By: Matthias Klose Automerge-Triggered-By: GH:tiran (cherry picked from commit da5c808fb50d34bc2e180d9481706072f33025da) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI ↵Miss Islington (bot)2021-05-053-2/+4
| | | | | | | (GH-25920) (cherry picked from commit cf86996a8e5965ff587040d0c2831c3132081a21) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926)Miss Islington (bot)2021-05-053-3/+29
| | | | | | | | | | | | 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>
* bpo-44040: Update broken link in pathlib source (GH-25905) (GH-25910)Miss Islington (bot)2021-05-051-6/+6
| | | | | (cherry picked from commit 96d5c7038b06e93d20822d28ed42a2183f876857) Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
* Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)Miss Islington (bot)2021-05-051-1/+1
|
* bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)Miss Islington (bot)2021-05-041-2/+1
| | | | | | | | | | | | | 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>
* Clarify rx parameter of compileall functions (GH-25857)Miss Islington (bot)2021-05-041-4/+6
| | | | | (cherry picked from commit 09490298d4485e9322edc6e1e8e15eb66c586164) Co-authored-by: Jean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>
* Fix inconsistent fsum vs sum and fmean vs mean (GH-25898) (GH-25899)Miss Islington (bot)2021-05-041-3/+3
|
* Fix typo in ast.py (GH-25740)Miss Islington (bot)2021-05-041-2/+2
| | | | | | parantheses -> parentheses (cherry picked from commit 9ee8448243e776d2a07a9868e9795bbb2c828f9c) Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
* fix enum.property reference in docs (GH-25875) (#25876)Miss Islington (bot)2021-05-041-1/+1
| | | | | (cherry picked from commit 6fee0835cb00677acd341751f831ca1af128f4c9) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)Miss Islington (bot)2021-05-042-1/+2
| | | | | (cherry picked from commit b451bc8d7e5e5a1df46fbecb6cf50af942cc401e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) ↵Miss Islington (bot)2021-05-042-0/+5
| | | | | | | | | | (#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>
* Fix error in Enum documentation example code that was referring to the wrong ↵Miss Islington (bot)2021-05-041-1/+1
| | | | | | | enum. (GH-25837) (#25891) (cherry picked from commit 33d9bf298b7672c5a09f8c0d80af00a4ec383e4a) Co-authored-by: krisaoe <krisaoe@users.noreply.github.com>
* Add C-API tests (GH-25886) (#25887)Miss Islington (bot)2021-05-042-0/+23
| | | | | (cherry picked from commit 2f5baa17504feb9a7613bac32fdceed4894434de) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-44025: Clarify when '_' is a keyword. (GH-25873)Miss Islington (bot)2021-05-042-2/+5
| | | | | | | | 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>
* Copyedits to 3.10 What's New (GH-25787) (#25883)Miss Islington (bot)2021-05-041-46/+46
| | | | | | 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>
* bpo-38352: Add to typing.__all__ (GH-25821) (#25884)Miss Islington (bot)2021-05-042-0/+9
| | | | | | | | 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>
* bpo-44001: improve Literal documentation (GH-25877) (#25882)Miss Islington (bot)2021-05-043-5/+5
| | | | | (cherry picked from commit 87109f4d85c93a870ee8aa0d2b394547d4636b17) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* update docstring for `win_getpass` to reflect code changes (GH-24967)Miss Islington (bot)2021-05-041-1/+1
| | | | | | | | | | 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>
* bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25872)Miss Islington (bot)2021-05-043-2/+7
|
* fix enum and backslash warnings (GH-25861) (GH-25871)Miss Islington (bot)2021-05-042-2/+2
| | | | | | | | | - 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>
* Add CI step to check changes in the exported ABI (GH-25868)Pablo Galindo2021-05-043-0/+15751
|
* bpo-43822: Prioritize tokenizer errors over custom syntax errors when ↵Miss Islington (bot)2021-05-040-0/+0
| | | | | | | raising parser exceptions (GH-25866) (cherry picked from commit 9142088e7454a392b69a627863b235ecc32aea54) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-43822: Prioritize tokenizer errors over custom syntax errors when ↵Miss Islington (bot)2021-05-043-1/+6
| | | | | | | raising parser exceptions (GH-25866) (cherry picked from commit 9142088e7454a392b69a627863b235ecc32aea54) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Update CI files to build the 3.10 branchPablo Galindo2021-05-045-2/+7
|
* Post 3.10.0b1Pablo Galindo2021-05-031-1/+1
|
* Python 3.10.0b1v3.10.0b1Pablo Galindo2021-05-03173-5610/+9337
|
* Remove Enum warnings from test_httpservers (GH-25844)Shreyan Avigyan2021-05-031-2/+2
|
* bpo-38530: Refactor and improve AttributeError suggestions (GH-25776)Dennis Sweeney2021-05-034-77/+303
| | | | | | | | | | | | | | | | | | | | - 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>
* bpo-43943: ssl tests: Increase server socket timeout, backlog, debugging ↵Christian Heimes2021-05-031-5/+11
| | | | | (GH-25850) Signed-off-by: Christian Heimes <christian@python.org>
* bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848)Pablo Galindo2021-05-0312-2480/+527
| | | | This reverts commit 5fb06edbbb769561e245d0fe13002bab50e2ae60 and all subsequent dependent commits.
* bpo-43754: Fix compiler warning in Python/compile.c (GH-25855)Pablo Galindo2021-05-031-1/+1
| | | | | This fixes the following warning: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data [D:\a\cpython\cpython\PCbuild\pythoncore.vcxproj]
* bpo-43916: Move the _PyStructSequence_InitType function to the internal API ↵Pablo Galindo2021-05-0310-9/+26
| | | | (GH-25854)
* Doc: Fix random.uniform example comment. (GH-25784)Julien Palard2021-05-031-1/+1
|
* Increase test timeout (GH-25842)Andrew Svetlov2021-05-031-3/+3
|
* bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583)Batuhan Taskaya2021-05-035-18/+149
|
* bpo-44011: Fix asyncio tests without ssl module (GH-25840)Christian Heimes2021-05-032-3/+9
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-44015: dataclasses should allow KW_ONLY to be specified only once per ↵Eric V. Smith2021-05-033-0/+83
| | | | | class (GH-25841) bpo-44015: Raise a TypeError if KW_ONLY is specified more than once.
* dataclasses docs: add a missing word. (GH-25839)Eric V. Smith2021-05-031-1/+1
|
* More clarification of kw_only args. (GH-25838)Eric V. Smith2021-05-031-13/+20
| | | Also, clarify that the dataclass decorator is what raises an error for some mutable defaults.
* Update macOS installer welcome and readme for 3.10b1 (GH-25835)Ned Deily2021-05-032-8/+28
|