summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple ↵Miss Islington (bot)2022-10-272-0/+4
| | | | | | | | times (GH-98704) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 8a755423eba8e19704d96905730cf7f50083eb23) Co-authored-by: Ken Jin <kenjin@python.org>
* Fix readline.c compiler warning. (GH-98738)Miss Islington (bot)2022-10-261-1/+1
| | | | | | | | | | ``` Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] completer_word_break_characters = ^ ``` (cherry picked from commit 29b391b1378577825a658b14764a8ff3e0b5c958) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [3.10] Change links to label refs (GH-98454) (#98726)Stanley2022-10-267-7/+12
| | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* [3.10] gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs ↵Erlend E. Aasland2022-10-261-2/+2
| | | | | | | (GH-98720) (#98737) (cherry picked from commit 365852a03a0c934ccd9b6c2b8e24c71181c41f03) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-94808: cover `PyMapping_HasKeyString` and `PyMapping_HasKey` (GH-98486)Miss Islington (bot)2022-10-262-0/+48
| | | | | (cherry picked from commit 5d30544485dc56ab999ad7656ef6559306fd013f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)Miss Islington (bot)2022-10-261-0/+3
| | | | | (cherry picked from commit 216f45e4fec42407ff744b915523a226a0070ff1) Co-authored-by: fancidev <fancidev@gmail.com>
* gh-77753: Add example for values that compare equal in stdtypes (GH-98497)Miss Islington (bot)2022-10-261-5/+3
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 0ca6a4d64086055a8a3aa4b4c024fc080de148ab) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-84747: Add `async for` comment for StreamReader (GH-98633)Miss Islington (bot)2022-10-261-1/+2
| | | | | (cherry picked from commit 4196ee5c8b489f457874759ee22c9237e08f85c4) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-94808: Improve coverage of `unicode_find` and `unicode_rfind` (GH-98648)Miss Islington (bot)2022-10-261-0/+27
| | | | | (cherry picked from commit b1783bc124712fa03fea9621a0eb4119d29b14fe) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-98623: Fix base classes in `typing.rst` (GH-98626)Miss Islington (bot)2022-10-251-2/+2
| | | | | (cherry picked from commit 5076108872df07592931cd27efac4a4496aba2e8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Use more precise exception types in `assertRaises` in typing tests (GH-98650)Miss Islington (bot)2022-10-251-3/+3
| | | | | (cherry picked from commit 45c89358b71e4638455e75ba6e60b42c511bbc2a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-93696: Locate frozen module source with __file__ (GH-93697)Miss Islington (bot)2022-10-253-0/+53
| | | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit d91de288e73c67805e4c838b5f770ab7ec3661f9) Co-authored-by: James Gerity <snoopjedi@gmail.com>
* [3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639) ↵Erlend E. Aasland2022-10-252-3/+4
| | | | | | | | (#98647) [3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639). (cherry picked from commit 8aa1e994a530e538a5433c8ada6500ffc1214467) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-98456: Replace deprecated `set-output` with up-to-date vers… ↵Dong-hee Na2022-10-251-4/+4
| | | | | | | | | | (gh-98564) [3.10] gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457). (cherry picked from commit 1db2a0cb20a1de5231a73fc7381056d725e90535) Co-authored-by: Noam Cohen <noam@noam.me> Co-authored-by: Noam Cohen <noam@noam.me>
* GH-89237: fix hang in proactor `subprocess.wait_closed()` (GH-98572)Miss Islington (bot)2022-10-243-2/+10
| | | | | (cherry picked from commit ad1dc3ebb6aadaeeeacde13d4ed2d62bf302bf62) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-98507: [typing docs] Rephrase "now supports `[]`" to "now supports ↵Miss Islington (bot)2022-10-241-72/+78
| | | | | | | subscripting" (GH-98508) (cherry picked from commit e3b9dd8e870a61016e0f221e30d4f7d0b99cddb3) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* GH-91635: clarify docs about closing of transport in asyncio (GH-98563)Miss Islington (bot)2022-10-241-1/+2
| | | | | (cherry picked from commit 2fdcc6f2cb5e3e1e09b8dff179f4c11193799998) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-98500: Fix typing docs for `*View` classes (GH-98511)Miss Islington (bot)2022-10-241-4/+4
| | | | | (cherry picked from commit 1a217f9ffc6d014536c08d7fb0136d117b8a0add) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-98561: Fix a typo in typing (GH-98562)Miss Islington (bot)2022-10-231-1/+1
| | | | | (cherry picked from commit b6d5d5b60afc61337c569c07a881003faaa791e7) Co-authored-by: Omkaar <79257339+Infiniticity@users.noreply.github.com>
* gh-51511: Note that codecs.open()'s encoding parameter affects automatic ↵Miss Islington (bot)2022-10-213-3/+6
| | | | | | | conversion to binary mode (GH-94370) (cherry picked from commit d9407b174c81fda33e6c09a6f988c9a7cb8368af) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519)Theo Buehler2022-10-213-7/+18
| | | | | | | | | | This is a port of the applicable part of XKCP's fix [1] for CVE-2022-37454 and avoids the segmentation fault and the infinite loop in the test cases published in [2]. [1]: https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a [2]: https://mouha.be/sha-3-buffer-overflow/ Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>
* [3.10] gh-97514: Don't use Linux abstract sockets for multiprocessing ↵Miss Islington (bot)2022-10-202-5/+15
| | | | | | | | | | | | | | | | | | | | | | (GH-98501) (GH-98503) 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-203-12/+18
| | | | | | 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>
* CODEOWNERS: Become a typing code owner (GH-98480)Miss Islington (bot)2022-10-201-1/+1
| | | | | (cherry picked from commit cb93b4aee5eb12dc6c4b2dccc81a2e5ace3ea4de) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.10] [doc] Improve logging cookbook example. (GH-98481) (GH-98482)Miss Islington (bot)2022-10-201-0/+65
| | | Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
* [3.10] [doc] Refresh the venv introduction documentation, and correct… ↵Vinay Sajip2022-10-192-101/+134
| | | | | | (GH-98466) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Phil Elson <pelson.pub@gmail.com>
* Doc: Remove title text from internal links (GH-98409)Miss Islington (bot)2022-10-191-5/+3
| | | | | | Rely on the title of the linked internal page instead of putting the title. Sphinx will render with the title correctly, and this will reduce work for translators (cherry picked from commit 52fcba651288ac1c0f9b1fb71379f1dad54ee1da) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* gh-97928: Fix handling options starting with "-" in tkinter.Text.count() ↵Miss Islington (bot)2022-10-193-4/+4
| | | | | | | | (GH-98436) Previously they were silently ignored. Now they are errors. (cherry picked from commit e4ec8de6fa6f0a07e64f6a3e3f894926b4b0652d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-97928: Add tests for tkinter.Text.count() (GH-98269)Miss Islington (bot)2022-10-191-0/+54
| | | | | (cherry picked from commit 1b684c8f5f738b56f859e5c87b7280610b90399f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] gh-93858: Prevent error when activating venv in nested fish instances ↵Miss Islington (bot)2022-10-182-3/+7
| | | | | (GH-93931) (GH-98403) Co-authored-by: Thomas B. Brunner <thomasbbrunner@gmail.com>
* [3.10] gh-98331: Update bundled pip to 22.3 (GH-98332) (gh-98399)Miss Islington (bot)2022-10-184-2/+3
|
* [3.10] Docs: Fix backtick errors found by sphinx-lint (GH-97998) (#98373)C.A.M. Gerlach2022-10-1749-89/+81
| | | | | | | | 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-98174: Handle EPROTOTYPE under macOS in ↵Miss Islington (bot)2022-10-171-2/+12
| | | | | | | | test_sendfile_fallback_close_peer_in_the_middle_of_receiving (GH-98316) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> (cherry picked from commit 3e82ad05b18d004e4d01fdb643344d6a2bf11900) Co-authored-by: fancidev <fancidev@gmail.com>
* gh-85299: Add note warning about entry point guard for asyncio example ↵Miss Islington (bot)2022-10-162-1/+9
| | | | | | | (GH-93457) (cherry picked from commit 79fd6ccdbe00ec95e4d33fc24fe76076282a334e) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-97527: IDLE - fix buggy macosx patch (GH-98313)Miss Islington (bot)2022-10-163-16/+34
| | | | | | | | | 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.10] docs(typing): harmonize "See PEP x for more details" (GH-97927). (#98293)Jelle Zijlstra2022-10-161-6/+5
| | | | | (cherry picked from commit 02389658a4751a0166e2ed22be112b646378a01b) Co-authored-by: Simon Legner <Simon.Legner@gmail.com>
* [3.10] [doc] Update logging cookbook with an example of custom handli… ↵Vinay Sajip2022-10-151-2/+283
| | | | | (GH-98299) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-95971: Turn @writes_bytecode_files to skip when not running (GH-95972)Miss Islington (bot)2022-10-151-1/+1
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 07b5c4699e64eb30c3bdcb1275c167e675d37423) Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
* gh-95731: Fix module docstring extraction in pygettext (GH-95732)Miss Islington (bot)2022-10-153-3/+25
| | | | | (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-143-13/+25
| | | | | | | 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-133-4/+24
| | | | | | | 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>
* gh-98178: syslog() is not thread-safe on macOS (GH-98213)Miss Islington (bot)2022-10-132-0/+9
| | | | | | | | | On macOS, fix a crash in syslog.syslog() in multi-threaded applications. On macOS, the libc syslog() function is not thread-safe, so syslog.syslog() no longer releases the GIL to call it. (cherry picked from commit d4b91663857e85eab1f309cacec4d27b5f6657ec) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.10] gh-86404: Doc CI: Disable suspicious checks. (GH-26575) (GH-98221)Julien Palard2022-10-122-3/+1
| | | gh-86404: Doc CI: Disable suspicious checks.
* gh-96265: Formatting changes for faq/general (GH-98129)Miss Islington (bot)2022-10-121-12/+18
| | | | | | | | | | | | | | | | | | | | | | | * Some formatting changes for general faq * Use list for Python versioning Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> * New line for list, list for a/b/rc * Line wrap for 80 chars * More line wrap * Remove PythonWin mention. Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit e9569ec43e2376aa77240cd630db4be07e8720f3) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* tutorial: remove "with single quotes" (GH-98204)Miss Islington (bot)2022-10-121-1/+1
| | | | | | | | | Closes GH-91856. On Windows double quotes are sometimes better, on Unix usually single quotes. It's not our place to explain that, so just don't. (cherry picked from commit 5f8ca1b7969f34ee09adb7b28337ebd920e6215a) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-65046: Link to logging cookbook from asyncio docs (GH-98207)Miss Islington (bot)2022-10-122-1/+4
| | | | | (cherry picked from commit c39a0c335486fa8eac0f3030930f9e8769118a4f) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* Formatting fixes in contextlib docs (GH-98111)Miss Islington (bot)2022-10-121-11/+17
| | | | | (cherry picked from commit 3b33c2010aa00ef5877bc35b02ae658e3c9f27af) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-95276: Add callable entry to the glossary (GH-95738)Miss Islington (bot)2022-10-121-0/+10
| | | | | (cherry picked from commit e3bf125c81d5da0734429c1cb6ae75e6086e35ae) Co-authored-by: MonadChains <monadchains@gmail.com>
* gh-96130: Rephrase use of "typecheck" verb for clarity (GH-98144)Miss Islington (bot)2022-10-121-10/+10
| | | | | | | I'm sympathetic to the issue report, especially in case this helps clarify to new users that Python itself does not do type checking at runtime (cherry picked from commit ed6344eed043eaaa41d11c1176c25aa79de64ef4) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* Post 3.10.8Pablo Galindo2022-10-111-1/+1
|