summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43417: Better buffer handling for ast.unparse (GH-24772)Batuhan Taskaya2021-05-082-65/+86
|
* bpo-28307: Convert simple C-style formatting with literal format into ↵Serhiy Storchaka2021-05-084-2165/+2390
| | | | | | | | | | | f-string. (GH-5012) C-style formatting with literal format containing only format codes %s, %r and %a (with optional width, precision and alignment) will be converted to an equivalent f-string expression. It can speed up formatting more than 2 times by eliminating runtime parsing of the format string and creating temporary tuple.
* bpo-43149: Correct the syntax error message for multiple exception types ↵Pablo Galindo2021-05-085-8/+10
| | | | | (GH-25996) Automerge-Triggered-By: GH:pablogsal
* Update references to master to point to main in customsourcelink.html (GH-25993)Pablo Galindo2021-05-081-1/+1
|
* bpo-42725: mention the changes on what's new (GH-25974)Batuhan Taskaya2021-05-081-0/+10
|
* bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965)pxinwr2021-05-082-1/+2
| | | 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.
* Fix make libainstall. (GH-25980)Senthil Kumaran2021-05-081-1/+1
| | | Initial patch by Benno Leslie.
* Fix the whatsnew/3.11.rst to link to the blurb-generated changelog. (GH-25979)Ned Deily2021-05-081-1/+1
|
* Update the SOURCE_URI in pyspecific.py to point to the new branch (GH-25977)Pablo Galindo2021-05-081-1/+1
|
* Add the blurbify of the 3.10.0b1 changelog to the main branch (GH-25976)Ned Deily2021-05-08169-443/+1807
|
* Do not use Py_ssize_clean_t (GH-25940)Inada Naoki2021-05-089-56/+46
|
* bpo-44026: Idle - display interpreter's 'did you mean' hints (GH-25912)E-Paine2021-05-074-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>
* bpo-44063: set the missing end locations on the compiler (GH-25956)Batuhan Taskaya2021-05-072-5/+20
|
* bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186)wyz23x22021-05-073-6/+19
| | | | Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com> Co-authored-by: Zachary Ware <zach@python.org>
* bpo-40222: "Zero cost" exception handling (GH-25729)Mark Shannon2021-05-0730-5688/+6615
| | | | | | | | "Zero cost" exception handling. * Uses a lookup table to determine how to handle exceptions. * Removes SETUP_FINALLY and POP_TOP block instructions, eliminating (most of) the runtime overhead of try statements. * Reduces the size of the frame object by about 60%.
* Simple Enhancement. Add missing return statements in ftplib documentation. ↵Senthil Kumaran2021-05-071-0/+2
| | | | (GH-25968)
* bpo-44047: Remove unused argument to _pysqlite_seterror (GH-25915)Erlend Egeberg Aasland2021-05-074-22/+23
|
* Doc: What's new in Python 3.11 (GH-25963)Julien Palard2021-05-072-0/+114
|
* bpo-44029: Remove Py_UNICODE APIs (GH-25881)Inada Naoki2021-05-0711-840/+15
| | | | | | | | | | | | Remove deprecated `Py_UNICODE` APIs: `PyUnicode_Encode`, `PyUnicode_EncodeUTF7`, `PyUnicode_EncodeUTF8`, `PyUnicode_EncodeUTF16`, `PyUnicode_EncodeUTF32`, `PyUnicode_EncodeLatin1`, `PyUnicode_EncodeMBCS`, `PyUnicode_EncodeDecimal`, `PyUnicode_EncodeRawUnicodeEscape`, `PyUnicode_EncodeCharmap`, `PyUnicode_EncodeUnicodeEscape`, `PyUnicode_TransformDecimalToASCII`, `PyUnicode_TranslateCharmap`, `PyUnicodeEncodeError_Create`, `PyUnicodeTranslateError_Create`. See :pep:`393` and :pep:`624` for reference.
* bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937)Inada Naoki2021-05-073-11/+32
| | | | `convertitem()` raises `SystemError` when '#' is used without `PY_SSIZE_T_CLEAN`. This commit makes `skipitem()` raise it too.
* Fix minor grammar problems in dataclasses documentation (GH-25948)Scott Noyes2021-05-061-7/+7
| | | Some missing words; some odd word choices.
* docs: clearly document that ":#X" string formatting results in "0X..." ↵Tal Einat2021-05-061-2/+4
| | | | | | | (GH-25941) * clearly document that ":#X" string formatting results in "0X..." * put back the "serial comma"
* bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler ↵Stephen Rosen2021-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>
* bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947)Linus Groh2021-05-063-0/+6
| | | Automerge-Triggered-By: GH:gpshead
* Eliminate duplicated calculations and unnecessary work for linear regression ↵Raymond Hettinger2021-05-061-2/+7
| | | | (GH-25922)
* bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)Christian Heimes2021-05-062-45/+12
| | | Also use new make target to install FIPS provider.
* bpo-44017: Update test_contextlib_async not to emit DeprecationWarn (GH-25918)Dong-hee Na2021-05-062-9/+6
|
* bpo-43882 Remove the newline, and tab early. From query and fragments. ↵Senthil Kumaran2021-05-052-11/+21
| | | | (GH-25921)
* bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 100 ↵Gen Xu2021-05-053-18/+32
| | | | | | | Continue (GH-25916) 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>
* bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)Gregory P. Smith2021-05-052-0/+7
| | | | | Contributed-By: Matthias Klose Automerge-Triggered-By: GH:tiran
* bpo-35753: Fix crash in doctest with unwrap-able functions (#22981)Alfred Perlstein2021-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.
* bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable ABI ↵Petr Viktorin2021-05-053-2/+4
| | | | (GH-25920)
* typing: format patch with make patchcheck (GH-25919)Dong-hee Na2021-05-051-1/+1
|
* bpo-44040: Update broken link in pathlib source (GH-25905)Kevin Follstad2021-05-051-6/+6
|
* Eliminate duplicated assignment in _randommodule.c (GH-25904)Brad Larsen2021-05-051-1/+1
|
* bpo-40521: Convert deque freelist from global vars to instance vars (GH-25906)Raymond Hettinger2021-05-052-28/+34
|
* bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)karl ding2021-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.
* Clarify rx parameter of compileall functions (#25857)Jean-Abou-Samra2021-05-041-4/+6
|
* Fix inconsistent fsum vs sum and fmean vs mean (GH-25898)Raymond Hettinger2021-05-041-3/+3
|
* Fix typo in ast.py (GH-25740)Ikko Ashimine2021-05-041-2/+2
| | | parantheses -> parentheses
* bpo-42686: Enable SQLite math functions in Windows build (#24053)Erlend Egeberg Aasland2021-05-042-1/+2
|
* bpo-32822: Add finally with return/break/continue to the tutorial (#25600)Roberto Hueso2021-05-042-0/+5
| | | | | 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.
* Fix error in Enum documentation example code that was referring to the wrong ↵krisaoe2021-05-041-1/+1
| | | | enum. (#25837)
* Add C-API tests (#25886)Ken Jin2021-05-042-0/+23
|
* bpo-38352: Add to typing.__all__ (#25821)Jelle Zijlstra2021-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>
* Copyedits to 3.10 What's New (#25787)Jelle Zijlstra2021-05-041-46/+46
| | | Co-authored-by: Dominic Davis-Foster <dominic@davis-foster.co.uk>
* bpo-44025: Clarify when '_' is a keyword. (#25873)Terry Jan Reedy2021-05-042-2/+5
| | | | | In match statements, in case patterns and nowhere else. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-40465: Remove random module features deprecated in 3.9 (GH-25874)Raymond Hettinger2021-05-044-64/+25
|
* bpo-44001: improve Literal documentation (GH-25877)Jelle Zijlstra2021-05-043-5/+5
|
* bpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment ↵Michael Felt2021-05-042-12/+20
| | | | | | | | | (GH-25095) Since WPAR and LPAR both have a builddate for teh fileset bos.rte The name of the fileset checked is modified. To prevent a similiar situation (no builddate in ODM) a value sufficient for pep425 activity if retrieved buildate is zero or NULL Patch by M Felt.