summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-98897: fix memory leak if `math.dist` raises exception (GH-98898)Miss Islington (bot)2022-11-013-3/+9
| | | | | (cherry picked from commit ab575050709e2b313ca9a9585f09b6f4b0560318) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-98692: Enable treating shebang lines as executables in py.exe launcher ↵Miss Islington (bot)2022-10-314-4/+124
| | | | | | | (GH-98732) (cherry picked from commit 88297e2a8a75898228360ee369628a4a6111e2ee) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] gh-98793: Fix typecheck in `overlapped.c` (GH-98835) (#98889)Charlie Zhao2022-10-314-9/+21
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 3ac8c0ab6ee819a14b1c8e0992acbaf376a46058)
* Fix typo in sorting HOWTO (GH-98888)Miss Islington (bot)2022-10-311-1/+1
| | | | | (cherry picked from commit 3b86538661038ee23d0be80bb7593e2e7856f059) Co-authored-by: partev <petrosyan@gmail.com>
* Doc: Fix sphinx-lint issues (GH-98911)Miss Islington (bot)2022-10-311-1/+1
| | | | | | They were introduced right between GH-98441 and GH-98408. (cherry picked from commit c1c3be0f9dc414bfae9a5718451ca217751ac687) Co-authored-by: Julien Palard <julien@palard.fr>
* gh-98576: Fix types in dataclass.InitVar example (gh-98577)Miss Islington (bot)2022-10-311-2/+2
| | | | | (cherry picked from commit 880bafc574bcd811dd7244f9a82056430b489996) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.11] gh-96151: Use a private name for passing builtins to dataclass. This ↵Miss Islington (bot)2022-10-313-5/+13
| | | | | | | | | | now allows for a field named BUILTIN (gh-98143) (gh-98900) gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143) (cherry picked from commit 29f98b46b77ee528477b9a7b335974b9682f7f14) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.11] gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98874)Miss Islington (bot)2022-10-305-19/+57
| | | | | | | | | | | | | * As most of `test_embed` now uses `Py_InitializeFromConfig`, add a specific test case to cover `Py_Initialize` (and `Py_InitializeEx`) * Rename `_testembed` init helper to clarify the API used * Add a `PyConfig_Clear` call in `Py_InitializeEx` to make the code more obviously correct (it already didn't leak as none of the dynamically allocated config fields were being populated, but it's clearer if the wrappers follow the documented API usage guidelines) (cherry picked from commit 05e48865be69e1e5824f6915b588ff054717bb42) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
* [3.11] gh-98783: Fix crashes when `str` subclasses are used in ↵Dennis Sweeney2022-10-304-2/+35
| | | | | | | | `_PyUnicode_Equal` (GH-98806) (#98871) * gh-98783: Fix crashes when `str` subclasses are used in `_PyUnicode_Equal` (GH-98806) (cherry picked from commit 76f989dc3e668d15b3ec9a90bf6530276530acac) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* glossary.rst: Fix typo in package definition (GH-98865)Miss Islington (bot)2022-10-291-1/+1
| | | | | | | | | This is a tiny typo fix of package definition in glossary. According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly. Automerge-Triggered-By: GH:AlexWaygood (cherry picked from commit fc94d55ff453a3101e4c00a394d4e38ae2fece13) Co-authored-by: ab <abousselmi@users.noreply.github.com>
* Fix typo in docs (GH-98863)Miss Islington (bot)2022-10-291-1/+1
| | | | | (cherry picked from commit bfecff5f73741f095bb9ec2329467bf16cbbdf5a) Co-authored-by: Yuvi Panda <yuvipanda@gmail.com>
* gh-93358: Fix python-config docs for how to embed Python (GH-98649)Miss Islington (bot)2022-10-291-6/+6
| | | | | (cherry picked from commit e063c23c65143a3afae3e201459dc0d52cb6fc96) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* dataclasses docs: consistent indentation (4 spaces) in examples (GH-98855)Miss Islington (bot)2022-10-291-16/+16
| | | | | (cherry picked from commit d10c2b97428bd07827f7bac4515d41ac08be7481) Co-authored-by: FC Stegerman <flx@obfusk.net>
* [3.11] gh-98744: Prevent column-level decoding crashes on traceback module ↵Batuhan Taskaya2022-10-293-14/+63
| | | | | (#98850) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
* Fix typo in contextvars docs (GH-98823)Miss Islington (bot)2022-10-281-1/+1
| | | | | (cherry picked from commit 72fa57a8fe2e9df637170dc97f994ac70931e8e9) Co-authored-by: cburroughs <chris.burroughs@gmail.com>
* `argparse` docs: normalize constant references (GH-98765)Miss Islington (bot)2022-10-281-5/+6
| | | | | (cherry picked from commit b27b57c6e44a276c8a9843fd37d4cf65b2827d5c) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.11] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) (#98797)Miss Islington (bot)2022-10-282-28/+40
| | | | | (cherry picked from commit 0346eddbe933b5f1f56151bdebf5bd49392bc275) Co-authored-by: noah-weingarden <33741795+noah-weingarden@users.noreply.github.com>
* [3.11] Python documents state elsewhere that a comma is not an operator ↵Miss Islington (bot)2022-10-281-1/+1
| | | | | | | | (GH-98736) (#98757) Python documents state elsewhere that a comma is not an operator, so calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.htmlGH-operators and https://docs.python.org/3/faq/programming.htmlGH-id22. (cherry picked from commit d578aaea6257458c199328100cbb5af64c6a043e) Co-authored-by: Gerardwx <Gerardwx@users.noreply.github.com>
* [3.11] gh-98548: Fix `-ne` shell operator spelling (#98556)sterliakov2022-10-281-2/+1
|
* gh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on ↵Miss Islington (bot)2022-10-282-1/+5
| | | | | | | request (GH-98780) (cherry picked from commit 25811d9010510d24bbe35acca9da86b064f239c0) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)Miss Islington (bot)2022-10-274-18/+36
| | | | | | | | * Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680. Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com> (cherry picked from commit 3e07f827b359617664ad0880f218f17ae4483299) Co-authored-by: Shaun Walbridge <46331011+scdub@users.noreply.github.com>
* obmalloc: Remove unused variable. (GH-98770)Miss Islington (bot)2022-10-271-3/+1
| | | | | (cherry picked from commit bded5edd9abf7ae6b2874916d70ec29ad209217c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* gh-98703: Add tests for closing `_ProactorSocketTransport` with proactor ↵Miss Islington (bot)2022-10-271-0/+21
| | | | | | | event loop (GH-98730) (cherry picked from commit 96ae80f1d004f2df4a707919853f0745c9c352d1) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* 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.11] gh-98741: Remove useless check_home usage from is_python_build usage ↵Miss Islington (bot)2022-10-262-4/+4
| | | | | (GH-98743) (GH-98746) Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
* [3.11] Change links to label refs (GH-98454) (#98725)Stanley2022-10-269-9/+14
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit 268129a74f01adb7bb14cd71d1f38378e39d304d)
* gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720)Miss Islington (bot)2022-10-261-5/+5
| | | | | (cherry picked from commit 365852a03a0c934ccd9b6c2b8e24c71181c41f03) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-98644: point people to tomllib from configparser’s docs (GH-98645)Miss Islington (bot)2022-10-261-4/+8
| | | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 5e74bad93ccc681f0d407aaa3a6830a2d54a20a2) Co-authored-by: Philipp A <flying-sheep@web.de>
* gh-98713: Use `@cpython_only` for a test that fails on PyPy (GH-98714)Miss Islington (bot)2022-10-262-1/+5
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 9495360c7256938a6185838561cf416599b7e94f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* 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>
* [3.11] GH-87390: Add remaining tests for PEP 646 (GH-98267) (#98667)Jelle Zijlstra2022-10-263-241/+489
| | | | | | | Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>. Co-authored-by: Matthew Rahtz <matthew.rahtz@gmail.com> (cherry picked from commit cb95cc24efecf32ad035318867b065a2b042d25a)
* 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>
* fix a typo in whatsnew/3.11 (GH-98603)Miss Islington (bot)2022-10-251-1/+1
| | | | | (cherry picked from commit 45644905ea1352b79a0d5ab4f02e00a258206116) Co-authored-by: July Tikhonov <july.tikh@gmail.com>
* Fix typos in deprecation section of 3.11 What's New (GH-98628)Miss Islington (bot)2022-10-251-3/+3
| | | | | (cherry picked from commit faea6a131a9d06208e9043b499a90e11bdfbb479) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* gh-95913: Fix, sort & expand pending removal sect in 3.11 WhatsNew (GH-98583)Miss Islington (bot)2022-10-251-20/+43
| | | | | | | | | | | | | | | * Fix names/references of pending removal APIs * Sort list of APIs pending removal alphabetically * Add missing modules/submodules pending removal in 3.12 * Add table of unittest deprecated aliases to 3.11 What's New Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com> (cherry picked from commit e19c2b979fab3483dc6c04774053dbbe83e769fb) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-97937: dis docs: add adaptive=False (GH-97939)Miss Islington (bot)2022-10-251-13/+29
| | | | | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> (cherry picked from commit 5d8bf2b106e694423bafaa3e1ea1edf20037573c) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640)Miss Islington (bot)2022-10-254-3/+4
| | | | | (cherry picked from commit 0c84593275969d9b8f42e75abb2638b69d5b5f4a) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-98602: [typing docs] Use quotes for forward reference in TypeVarTuple ↵Miss Islington (bot)2022-10-251-1/+1
| | | | | | | example (GH-98605) (cherry picked from commit be0cf82ae4e49891dcd5e37012d6f6ce08bc4726) Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
* 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-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>
* 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>
* gh-95913: Prepare Improved Modules in 3.11 WhatsNew for final edits (GH-98631)Miss Islington (bot)2022-10-251-22/+91
| | | | | | | | | | | | * Add two line breaks and ref target labels to remaining subsections * Fix a few out of order Improved Modules * Fix a few minor textual formatting issues in sections * Fix remaining Sphinx warnings in the Improved Modules section (cherry picked from commit dd13b23e49b8c49bc751fe5ed470773a2d60b7d1) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639)Miss Islington (bot)2022-10-252-3/+4
| | | | | (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-253-2/+10
| | | | | | | | | (#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] gh-98456: Replace deprecated `set-output` with up-to-date vers… ↵Dong-hee Na2022-10-251-4/+4
| | | | | | | | | | (gh-98565) [3.11] 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>
* [3.11] Fix v3.11.0 release merge problems (GH-98622)Pablo Galindo Salgado2022-10-2426-155/+2
| | | | | 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