summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.10] bpo-43908: Add What's New entry for Py_TPFLAGS_IMMUTABLETYPE flag ↵Miss Islington (bot)2021-05-131-0/+10
| | | | | | | | | | (GH-25816) (GH-26115) (cherry picked from commit a09fc9c63f1b5980c62ff2712f67500bacb92b04) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:gvanrossum
* bpo-28146: Fix a confusing error message in str.format() (GH-24213)Miss Islington (bot)2021-05-133-4/+14
| | | | | | Automerge-Triggered-By: GH:pitrou (cherry picked from commit 4aeee0b47b3a2b604bbac37040320ffc88c291f2) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-44114: Remove redundant cast. (GH-26098)Miss Islington (bot)2021-05-131-2/+2
| | | | | (cherry picked from commit e0c614e5fd017ca43cab55a9f8490133750c704f) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)Miss Islington (bot)2021-05-131-1/+4
| | | | | | | | The patch from [bpo-44074]() does not account for a possibly non-English locale and blindly greps for "HEAD branch" in a possibly localized text. Automerge-Triggered-By: GH:pitrou (cherry picked from commit 1aa3530314d339725519f4ad95b7dea4b00b657e) Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-44098: Drop ParamSpec from most ``__parameters__`` in typing generics ↵Miss Islington (bot)2021-05-133-14/+59
| | | | | | | | | | | (GH-26013) (#26091) Added two new attributes to ``_GenericAlias``: * ``_typevar_types``, a single type or tuple of types indicating what types are treated as a ``TypeVar``. Used for ``isinstance`` checks. * ``_paramspec_tvars ``, a boolean flag which guards special behavior for dealing with ``ParamSpec``. Setting it to ``True`` means this class deals with ``ParamSpec``. Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit b2f3f8e3d81b0bb0ba18f563d82c28ba133c0790)
* [3.10] bpo-43933: Force RETURN_VALUE bytecodes to have line numbers (GH-26061)Mark Shannon2021-05-132-0/+50
| | | * Guarantee that line number is set for returns.
* bpo-39906: Document new follow_symlinks argument to pathlib.Path.stat() and ↵Miss Islington (bot)2021-05-131-0/+5
| | | | | | | chmod() in 3.10 whatsnew. (GH-26089) (cherry picked from commit 366c69f3f63a2a1cce57dabe8f7c2e67d1df625d) Co-authored-by: Barney Gale <barney.gale@gmail.com>
* bpo-44114: Fix dictkeys_reversed and dictvalues_reversed function signatures ↵Miss Islington (bot)2021-05-132-4/+5
| | | | | | | | | | (GH-26062) These are passed and called as PyCFunction, however they are defined here without the (ignored) args parameter. This works fine in some C compilers, but fails in webassembly or anything else that has strict function pointer call type checking. (cherry picked from commit ab383eb6f03896b0ef6634ee3d776344fcb9e5b8) Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
* bpo-44030: Fix formatting error in exceptions docs (GH-25929) (GH-26086)Miss Islington (bot)2021-05-131-1/+1
| | | | | | (cherry picked from commit 8ea350ee9055435c4267834cdaf85f1a2d4a1ed1) Co-authored-by: Miguel Brito <5544985+miguendes@users.noreply.github.com>
* bpo-44116: Add GC support to _csv heap types (GH-26074) (GH-26081)Miss Islington (bot)2021-05-121-30/+32
| | | (cherry picked from commit e5ba1fe995d4b4f3f6a089a7ec4dd186dd573830)
* bpo-40645: Fix ref leaks in _hashopenssl (GH-26079)Miss Islington (bot)2021-05-121-4/+9
| | | | | (cherry picked from commit 504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-38908: Fix issue when non runtime_protocol failed to raise TypeError ↵Miss Islington (bot)2021-05-123-2/+23
| | | | | | | (GH-26067) (cherry picked from commit c40486a32d7e37b01ead94e701d69847f5b60e30) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* [3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py ↵Irit Katriel2021-05-121-0/+18
| | | | | | | | (GH-24034) (GH-26065) Co-authored-by: Szymon Trapp (cherry picked from commit 5010c044c73ee55d0fd578cfecd3f4c3f01a4140) Co-authored-by: Karl Dubost <karl+github@la-grange.net>
* bpo-44089: Allow subclassing of ``csv.Error`` (GH-26008) (GH-26066)Miss Islington (bot)2021-05-123-1/+6
| | | | | | | | | | * 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>
* bpo-40640: doc -- add missing ... in example of Continue (GH-26055) (GH-26057)Miss Islington (bot)2021-05-121-0/+1
| | | | | | | Co-authored-by: Chas Belov <59780179+ChasBelov@users.noreply.github.com> (cherry picked from commit 6574334a68aa324394a6fd1f855ecbad20432b1e) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* Correct the changelog entry for the syntax error message for multiple ↵Miss Islington (bot)2021-05-111-1/+1
| | | | | | | exception types (GH-26038) (cherry picked from commit c1df8808e054bbe4fe66f35ccc0f88d8b292778a) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. ↵Miss Islington (bot)2021-05-113-1/+42
| | | | | | | | | (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>
* Fix import of HTTPError (GH-22304) (GH-26047)Miss Islington (bot)2021-05-112-2/+3
| | | | | | | | 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>
* bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044)Miss Islington (bot)2021-05-111-2/+3
| | | | | (cherry picked from commit 23ae2c3bacc167f7bbfea1846bbbc9dde63a1bfd) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-23750: Document os-system, subprocess. Patch by Martin Panter. ↵Miss Islington (bot)2021-05-112-5/+11
| | | | | | | | | | | | | | | | (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>
* bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation ↵Miss Islington (bot)2021-05-112-6/+7
| | | | | | | | (GH-23192) (#26035) (cherry picked from commit 12e7d10dfd28d4e26304e2c06b2e41c7418ec6f3) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* Doc: http.server: directory is not a class attribute, but an argument. ↵Miss Islington (bot)2021-05-111-8/+8
| | | | | | | | (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>
* bpo-44074: let patchcheck infer the base branch name (GH-25991)Miss Islington (bot)2021-05-102-4/+27
| | | | | (cherry picked from commit 21fbbb98bac8bfe56f8b931258c36750e84f9285) Co-authored-by: Leonardo Lai <leonardo.lai@live.com>
* bpo-43558: Add note about base class initialization to dataclasses doc ↵Miss Islington (bot)2021-05-103-0/+24
| | | | | | | | | (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>
* bpo-43149: Correct the syntax error message for multiple exception types ↵Miss Islington (bot)2021-05-095-8/+10
| | | | | | | | | | (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>
* Revert test for Tix deprecation warning (GH-26005)Miss Islington (bot)2021-05-091-6/+3
| | | | | | | | | 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>
* Fix a word in dataclasses docs. (GH-26003) (GH-26004)Miss Islington (bot)2021-05-091-1/+1
| | | | | | | (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>
* bpo-32924: Fix the Show Source url in the documentation (GH-25994)Pablo Galindo2021-05-081-1/+1
|
* bpo-42725: mention the changes on what's new (GH-25974)Miss Islington (bot)2021-05-081-0/+10
| | | | | (cherry picked from commit 17229ab4a2fd5db20d52ef0f3aca2a8b51869c43) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* [3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks ↵Miss Islington (bot)2021-05-082-1/+2
| | | | | | | | | | | (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
* Fix make libainstall. (GH-25980)Miss Islington (bot)2021-05-081-1/+1
| | | | | | Initial patch by Benno Leslie. (cherry picked from commit 80d250d68cf3bb511fd862169c681b28028499c2) Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
* Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25978)Pablo Galindo2021-05-081-1/+1
|
* bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)Miss Islington (bot)2021-05-084-5/+63
| | | | | | | | | 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>
* bpo-44063: set the missing end locations on the compiler (GH-25956) (#25972)Miss Islington (bot)2021-05-072-5/+20
| | | | | (cherry picked from commit b2ec37a7224318d466e0877790ed740ce8b4867d) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)Miss Islington (bot)2021-05-073-6/+19
| | | | | | | 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>
* Simple Enhancement. Add missing return statements in ftplib documentation. ↵Miss Islington (bot)2021-05-071-0/+2
| | | | | | | | | (GH-25968) (#25969) (cherry picked from commit b32c8e97951db46484ba3b646b988bcdc4062199) Co-authored-by: Senthil Kumaran <senthil@uthcode.com> Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
* bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)Miss Islington (bot)2021-05-073-11/+32
| | | | | | | `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>
* 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>