summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] GH-87390: Add remaining tests for PEP 646 (GH-98267) (#98667)Jelle Zijlstra2022-10-261-0/+1
| | | | | | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>. Co-authored-by: Matthew Rahtz <matthew.rahtz@gmail.com> (cherry picked from commit cb95cc24efecf32ad035318867b065a2b042d25a)
* gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640)Miss Islington (bot)2022-10-251-0/+1
| | | | | (cherry picked from commit 0c84593275969d9b8f42e75abb2638b69d5b5f4a) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-93696: Locate frozen module source with __file__ (GH-93697)Miss Islington (bot)2022-10-251-0/+1
| | | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit d91de288e73c67805e4c838b5f770ab7ec3661f9) Co-authored-by: James Gerity <snoopjedi@gmail.com>
* gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639)Miss Islington (bot)2022-10-251-0/+1
| | | | | (cherry picked from commit 8aa1e994a530e538a5433c8ada6500ffc1214467) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.11] GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572) ↵Miss Islington (bot)2022-10-251-0/+1
| | | | | | | | | (#98620) GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572) (cherry picked from commit ad1dc3ebb6aadaeeeacde13d4ed2d62bf302bf62) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] Fix v3.11.0 release merge problems (GH-98622)Pablo Galindo Salgado2022-10-2422-70/+0
| | | | | When merging the v3.11.0 tag into 3.11, some files were incorrectly updated and some others were not properly deleted. Automerge-Triggered-By: GH:pablogsal
* Merge tag 'v3.11.0' into 3.11Pablo Galindo2022-10-241-0/+255
|\ | | | | | | Python 3.11.0
| * Python 3.11.0v3.11.0Pablo Galindo2022-10-2424-71/+255
| |
| * GH-90985: Revert "Deprecate passing a message into cancel()" (GH-97999)Miss Islington (bot)2022-10-241-0/+1
| | | | | | | | | | | | | | Reason: we were too hasty in deprecating this. We shouldn't deprecate it before we have a replacement. (cherry picked from commit 09de8d7aafece264720afbca3052a63eee413b73) Co-authored-by: Guido van Rossum <guido@python.org>
| * gh-95027: Fix regrtest stdout encoding on Windows (GH-98492)Miss Islington (bot)2022-10-241-0/+4
| | | | | | | | | | | | | | | | | | On Windows, when the Python test suite is run with the -jN option, the ANSI code page is now used as the encoding for the stdout temporary file, rather than using UTF-8 which can lead to decoding errors. (cherry picked from commit ec1f6f5f139868dc2c1116a7c7c878c38c668d53) Co-authored-by: Victor Stinner <vstinner@python.org>
| * gh-90989: Clarify some installer text (GH-97668)Steve Dower2022-10-241-0/+1
| |
| * gh-97616: list_resize() checks for integer overflow (GH-97617)Miss Islington (bot)2022-10-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | Fix multiplying a list by an integer (list *= int): detect the integer overflow when the new allocated length is close to the maximum size. Issue reported by Jordan Limor. list_resize() now checks for integer overflow before multiplying the new allocated length by the list item size (sizeof(PyObject*)). (cherry picked from commit a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf) Co-authored-by: Victor Stinner <vstinner@python.org>
| * gh-97545: Make Semaphore run faster. (GH-97549)Miss Islington (bot)2022-10-241-0/+1
| | | | | | | | | | (cherry picked from commit 68c46ae68b6e0c36a12e37285fff9ce0782ed01e) Co-authored-by: Cyker Way <cykerway@gmail.com>
| * gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (GH-93222)Miss Islington (bot)2022-10-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | The main problem was that an unluckily timed task cancellation could cause the semaphore to be stuck. There were also doubts about strict FIFO ordering of tasks allowed to pass. The Semaphore implementation was rewritten to be more similar to Lock. Many tests for edge cases (including cancellation) were added. (cherry picked from commit 24e03796248ab8c7f62d715c28156abe2f1c0d20) Co-authored-by: Cyker Way <cykerway@gmail.com>
| * gh-96848: Fix -X int_max_str_digits option parsing (GH-96988)Miss Islington (bot)2022-10-221-0/+3
| | | | | | | | | | | | | | | | Fix command line parsing: reject "-X int_max_str_digits" option with no value (invalid) when the PYTHONINTMAXSTRDIGITS environment variable is set to a valid limit. (cherry picked from commit 41351662bcd21672d8ccfa62fe44d72027e6bcf8) Co-authored-by: Victor Stinner <vstinner@python.org>
| * gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96927)Miss Islington (bot)2022-10-221-0/+1
| | | | | | | | | | | | | | | | | | | | * gh-96821: Assert for demonstrating undefined behaviour * Fix UB (cherry picked from commit cbdeda8ce7a3543cb3376d70e4cd46fcf24f42a7) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
| * gh-95778: Mention sys.set_int_max_str_digits() in error message (GH-96874)Miss Islington (bot)2022-10-221-0/+3
| | | | | | | | | | | | | | When ValueError is raised if an integer is larger than the limit, mention sys.set_int_max_str_digits() in the error message. (cherry picked from commit e841ffc915e82e5ea6e3b473205417d63494808d) Co-authored-by: Victor Stinner <vstinner@python.org>
| * gh-96729: Ensure installers built with Tools/msi/buildrelease.bat have ↵Miss Islington (bot)2022-10-221-0/+2
| | | | | | | | | | | | | | matching UUIDs with official releases (GH-96755) (cherry picked from commit 662782e95f97d26bd57b3edc6aaf674e30899f44) Co-authored-by: adang1345 <adang1345@gmail.com>
| * [3.11] gh-96587: Raise `SyntaxError` for PEP654 on older `feature_version` ↵Nikita Sobolev2022-10-221-0/+2
| | | | | | | | | | | | | | (GH-96588) (#96591) (cherry picked from commit 2c7d2e8d46164efb6e27a64081d8e949f6876515) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
| * [3.11] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK ↵Miss Islington (bot)2022-10-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | (GH-97944) (#97969) The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls. Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a segfault if cpython is built with the macOS 13 SDK but run on an earlier version of macOS. Prevent this by adding runtime support for detection of these system calls ("weaklinking") as is done for other newer syscalls on macOS. (cherry picked from commit 6d0a0191a4e5477bd843e62c24d7f3bcad4fd5fc) Co-authored-by: Ned Deily <nad@python.org>
| * gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528)Miss Islington (bot)2022-10-221-0/+9
| | | | | | | | | | (cherry picked from commit b44372e03c5461b6ad3d89763a9eb6cb82df07a4) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
| * [3.11] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98400)Miss Islington (bot)2022-10-221-0/+1
| |
| * gh-98414: py.exe launcher does not use defaults for -V:company/ option ↵Miss Islington (bot)2022-10-221-0/+3
| | | | | | | | | | | | | | (GH-98460) (cherry picked from commit 4bd63f66cd4f6e8d549f88ae0f4b0106d522b6bb) Co-authored-by: Steve Dower <steve.dower@python.org>
| * [3.11] GH-97752: Clear the previous member of newly-created ↵Miss Islington (bot)2022-10-221-0/+2
| | | | | | | | | | generator/coroutine frames (GH-97812) (cherry picked from commit 93fcc1f4133e177882850177c2c047d46019b812)
| * gh-98360: multiprocessing now spawns children on Windows with correct ↵Miss Islington (bot)2022-10-221-0/+4
| | | | | | | | | | | | | | argv[0] in virtual environments (GH-98462) (cherry picked from commit e48f9b2b7e73f4a89a9b9c287f3b93dc13a60460) Co-authored-by: Steve Dower <steve.dower@python.org>
| * [3.11] gh-97514: Don't use Linux abstract sockets for multiprocessing ↵Miss Islington (bot)2022-10-221-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-98501) (GH-98502) Linux abstract sockets are insecure as they lack any form of filesystem permissions so their use allows anyone on the system to inject code into the process. This removes the default preference for abstract sockets in multiprocessing introduced in Python 3.9+ via https://github.com/python/cpython/pull/18866 while fixing https://github.com/python/cpython/issues/84031. Explicit use of an abstract socket by a user now generates a RuntimeWarning. If we choose to keep this warning, it should be backported to the 3.7 and 3.8 branches. (cherry picked from commit 49f61068f49747164988ffc5a442d2a63874fc17) Co-authored-by: Gregory P. Smith <greg@krypto.org> Automerge-Triggered-By: GH:gpshead
| * [3.11] GH-97002: Prevent _PyInterpreterFrames from backing more than one ↵Miss Islington (bot)2022-10-221-0/+3
| | | | | | | | | | PyFrameObject (GH-98002) (cherry picked from commit 21a2d9ff550977f2668e2cf1cc15793bf27fa109)
| * GH-96975: Skip incomplete frames in PyEval_GetFrame (GH-97018)Miss Islington (bot)2022-10-221-0/+2
| | | | | | | | | | (cherry picked from commit 8fd2c3b75b90c4ee391894aa5094615bbdb6242f) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
| * [3.11] Use SyntaxError invalid range in tutorial introduction example ↵Miss Islington (bot)2022-10-221-0/+1
| | | | | | | | | | | | | | | | | | | | (GH-93031) (GH-97666) Use SyntaxError invalid range in tutorial introduction example (GH-93031) Use output from a 3.10+ REPL, showing invalid range, for the SyntaxError examples in the tutorial introduction page. Co-authored-by: Eddie Hebert <eddie@eddiehebert.com>
| * gh-97740: Fix bang in Sphinx C domain ref target syntax (GH-97741)Miss Islington (bot)2022-10-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * gh-97740: Fix bang in Sphinx C domain ref target syntax Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Add NEWS entry for C domain bang fix Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit 9148c0d893c7807331fd7be0997261e289074bc5) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
| * Adjust stable ABI internal documentation (GH-96896)Miss Islington (bot)2022-10-221-7/+14
| | | | | | | | | | | | | | | | I was perusing this file, and noticed that this part of the documentation is slightly out of date: the `struct` items in this TOML file currently contain `struct_abi_kind` members, which distinguish between the different types of ABI compatibility described in the comment. I've updated the comment to reflect this. (cherry picked from commit 6e533088290b909df324615df24286489603989f) Co-authored-by: William Woodruff <william@yossarian.net>
| * [3.11] gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) ↵Miss Islington (bot)2022-10-221-1/+1
| | | | | | | | | | | | (GH-97775) (#97873) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| * [3.11] gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C ↵Łukasz Langa2022-10-223-3/+3
| | | | | | | | | | | | | | | | | | | | type>) (GH-97768) (#97924) :c:type:`<C type>` -> :c:expr:`<C type>` Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 0031e62973801d34a9e19ab7bb199e9668e32d7b) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
| * gh-86482: Document assignment expression need for ()s (GH-23291)Miss Islington (bot)2022-10-221-0/+1
| | | | | | | | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2b5f1360ead9aa72ae00de59edfd6c229d13933f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* | gh-95027: Fix regrtest stdout encoding on Windows (GH-98492)Miss Islington (bot)2022-10-211-0/+4
| | | | | | | | | | | | | | | | | | On Windows, when the Python test suite is run with the -jN option, the ANSI code page is now used as the encoding for the stdout temporary file, rather than using UTF-8 which can lead to decoding errors. (cherry picked from commit ec1f6f5f139868dc2c1116a7c7c878c38c668d53) Co-authored-by: Victor Stinner <vstinner@python.org>
* | [3.11] gh-97514: Don't use Linux abstract sockets for multiprocessing ↵Miss Islington (bot)2022-10-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-98501) (GH-98502) Linux abstract sockets are insecure as they lack any form of filesystem permissions so their use allows anyone on the system to inject code into the process. This removes the default preference for abstract sockets in multiprocessing introduced in Python 3.9+ via https://github.com/python/cpython/pull/18866 while fixing https://github.com/python/cpython/issues/84031. Explicit use of an abstract socket by a user now generates a RuntimeWarning. If we choose to keep this warning, it should be backported to the 3.7 and 3.8 branches. (cherry picked from commit 49f61068f49747164988ffc5a442d2a63874fc17) Co-authored-by: Gregory P. Smith <greg@krypto.org> Automerge-Triggered-By: GH:gpshead
* | gh-96035: Make urllib.parse.urlparse reject non-numeric ports (GH-98273)Miss Islington (bot)2022-10-201-0/+3
| | | | | | | | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 6f15ca8c7afa23e1adc87f2b66b958b721f9acab) Co-authored-by: Ben Kallus <49924171+kenballus@users.noreply.github.com>
* | gh-98360: multiprocessing now spawns children on Windows with correct ↵Miss Islington (bot)2022-10-201-0/+4
| | | | | | | | | | | | | | argv[0] in virtual environments (GH-98462) (cherry picked from commit e48f9b2b7e73f4a89a9b9c287f3b93dc13a60460) Co-authored-by: Steve Dower <steve.dower@python.org>
* | [3.11] gh-98374: Suppress ImportError for invalid query for help() co… ↵Dong-hee Na2022-10-201-0/+2
| | | | | | | | (gh-98472)
* | gh-98414: py.exe launcher does not use defaults for -V:company/ option ↵Miss Islington (bot)2022-10-191-0/+3
| | | | | | | | | | | | | | (GH-98460) (cherry picked from commit 4bd63f66cd4f6e8d549f88ae0f4b0106d522b6bb) Co-authored-by: Steve Dower <steve.dower@python.org>
* | gh-97928: Fix handling options starting with "-" in tkinter.Text.count() ↵Miss Islington (bot)2022-10-191-0/+2
| | | | | | | | | | | | | | | | (GH-98436) Previously they were silently ignored. Now they are errors. (cherry picked from commit e4ec8de6fa6f0a07e64f6a3e3f894926b4b0652d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* | [3.11] gh-93858: Prevent error when activating venv in nested fish instances ↵Miss Islington (bot)2022-10-181-0/+1
| | | | | | | | | | (GH-93931) (GH-98402) Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
* | [3.11] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98400)Miss Islington (bot)2022-10-181-0/+1
| |
* | [3.11] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98371)C.A.M. Gerlach2022-10-171-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>. (cherry picked from commit fa2d43e5184f5eaf3391844ec2400342a1b2ead4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* | gh-85525: Remove extra row in doc (GH-98337)Miss Islington (bot)2022-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | * remove extra row * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 5c9302d03a57759225dab9e2d7bdd38e79009441) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
* | [3.11] gh-98307: Add docstring and documentation for SysLogHandler.cr… ↵Vinay Sajip2022-10-161-0/+2
| | | | | | | | | | (GH-98325) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* | gh-97527: IDLE - fix buggy macosx patch (GH-98313)Miss Islington (bot)2022-10-161-0/+3
| | | | | | | | | | | | | | | | | | GH-97530 fixed IDLE tests possibly crashing on a Mac without a GUI. But it resulted in IDLE not starting in 3.10.8, 3.12.0a1, and Microsoft Python 3.10.2288.0 when test/* is not installed. After this patch, test.* is only imported when testing on Mac. (cherry picked from commit 35fa5d5e7f2b0971b39b2659dc70cb77e34a7dd6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* | [3.11] gh-95731: Fix module docstring extraction in pygettext (GH-95732) ↵Miss Islington (bot)2022-10-161-0/+1
| | | | | | | | | | | | | | | | (#98281) gh-95731: Fix module docstring extraction in pygettext (GH-95732) (cherry picked from commit 120b4ab2b68aebf96ce0de243eab89a25fc2d282) Co-authored-by: Jakub Kuczys <me@jacken.men>
* | gh-98251: Allow venv to pass along PYTHON* variables to pip and ensurepip ↵Miss Islington (bot)2022-10-141-0/+2
| | | | | | | | | | | | | | when they do not impact path resolution (GH-98259) (cherry picked from commit 2fe44f728afa2dd506c304641f0481d6813d1dbd) Co-authored-by: Steve Dower <steve.dower@python.org>
* | bpo-46364: Use sockets for stdin of asyncio only on AIX (GH-30596)Miss Islington (bot)2022-10-131-0/+1
| | | | | | | | | | | | | | Signed-off-by: Christoph Hamsen <hamsen.christoph@posteo.de> Co-authored-by: July Tikhonov <july.tikh@gmail.com> (cherry picked from commit c9ed0327a9c741a1808926b409df29467baf303a) Co-authored-by: Christoph Hamsen <37963496+xopham@users.noreply.github.com>