summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-47146: Fix reference counting in _testcapi.structmember ↵Miss Islington (bot)2023-07-211-1/+1
| | | | | | | initializer (GH-106862) (GH-106953) (cherry picked from commit 8d397ee8259fa0f81598a452438fc335267ca260) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-106919: Use role :c:macro: for referencing the C "constants" ↵Serhiy Storchaka2023-07-2146-292/+310
| | | | | (GH-106920) (GH-106951) (cherry picked from commit fcc816dbff7ca66c26f57a506e4d2330fe41d0ff)
* [3.12] gh-106368: Increase Argument Clinic test coverage for IndentStack ↵Miss Islington (bot)2023-07-211-0/+19
| | | | | | | (GH-106933) (#106943) (cherry picked from commit 8d228cf66f316803e95685d6553084f3d60cd9c5) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Docs: Argument Clinic: Add Background and Tutorial top-level sections ↵Miss Islington (bot)2023-07-211-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-106904) (#106945) Docs: Argument Clinic: Add Background and Tutorial top-level sections (GH-106904) Add Background as a toplevel section with the following subsections: - Background - The goals of Argument Clinic - Basic concepts and usage Rename "Converting your first function" to Tutorial. Add anchors for Background, Tutorial, and How-to Guides: - :ref:`clinic-background` - :ref:`clinic-tutorial` - :ref:`clinic-howtos` Link to these from within the Abstract. Break the compatibility paragraph out of Abstract and make it a note. (cherry picked from commit 81861fd90b4ae981e7881cd03a3c370713063525) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-106669: Revert "gh-102988: Detect email address parsing errors ... ↵Gregory P. Smith2023-07-215-167/+30
| | | | | | | | | (GH-105127)" (GH-106733) (#106941) This reverts commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00. Adds a regression test from the issue. See https://github.com/python/cpython/issues/106669.. (cherry picked from commit a31dea1feb61793e48fa9aa5014f358352205c1d)
* [3.12] Fix typo in tkinter docs (GH-106936) (#106937)Miss Islington (bot)2023-07-201-1/+1
| | | | | | | Fix typo in tkinter docs (GH-106936) (cherry picked from commit 60e83968d555d53b97de04a0a00b2cdeb3187d39) Signed-off-by: Makonede <61922615+Makonede@users.noreply.github.com> Co-authored-by: Makonede <61922615+Makonede@users.noreply.github.com>
* [3.12] Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request ↵Miss Islington (bot)2023-07-201-1/+1
| | | | | | | | (GH-106830) (#106912) Fix typo in 3.11.4 changelog: urllib.request.Requst -> Request (GH-106830) (cherry picked from commit 009e8f084c4cbb1f43d40b24b7f71fb189bbe36b) Co-authored-by: Zach Brantmeier <brantmeierz@gmail.com>
* [3.12] gh-106882: Note that `asyncio.Server` is only publicly exposed on ↵Miss Islington (bot)2023-07-191-0/+3
| | | | | | | | | | 3.11+ (GH-106901) (#106902) gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901) And later versions of 3.10, 3.9 (cherry picked from commit 1e1f4e91a905bab3103250a3ceadac0693b926d9) Co-authored-by: Jack Nelson <jack@jacknelson.xyz>
* [3.12] gh-104090: Fix unittest collectedDurations resources leak (GH-106795) ↵Miss Islington (bot)2023-07-192-1/+3
| | | | | | | | (#106888) gh-104090: Fix unittest collectedDurations resources leak (GH-106795) (cherry picked from commit 70b961ed93f67e34d0624e178f6029c886afaeee) Co-authored-by: Yonatan Bitton <bityob@gmail.com>
* [3.12] Docs: Argument Clinic: Group guides about default values (GH-106872) ↵Miss Islington (bot)2023-07-181-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | (#106874) Docs: Argument Clinic: Group guides about default values (GH-106872) Previous ToC layout (excerpt): - How to use symbolic default values ... - How to assign default values to parameter - How to use the ``NULL`` default value - How to use expressions as default values New layout: - How to assign default values to parameter - The ``NULL`` default value - Symbolic default values - Expressions as default values (cherry picked from commit 505eede38d141d43e40e246319b157e3c77211d3) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-86493: Fix possible leaks in some modules initialization ↵Serhiy Storchaka2023-07-1810-62/+46
| | | | | | (GH-106768) (GH-106855) Fix _ssl, _stat, _testinternalcapi, _threadmodule, cmath, math, posix, time. (cherry picked from commit 3e65baee72131b49f4ce8ca2da568a6f2001ce93)
* [3.12] Docs: Normalise Argument Clinic advanced topics headings (GH-106842) ↵Miss Islington (bot)2023-07-181-49/+46
| | | | | | | | (#106853) (cherry picked from commit 4cb0b9c0a9f6a4154238c98013d2679229b1f794) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.12] gh-86493: Fix possible leaks in modules initialization: ↵Serhiy Storchaka2023-07-184-60/+41
| | | | | | _curses_panel, _decimal, posix, xxsubtype (GH-106767) (#106849) (cherry picked from commit 745492355b94d109e47827e5865846f25ae42d26)
* [3.12] gh-106719: Fix __annotations__ getter and setter in the type and ↵Miss Islington (bot)2023-07-183-47/+35
| | | | | | | | | | module types (GH-106720) (GH-106848) gh-106719: Fix __annotations__ getter and setter in the type and module types (GH-106720) No longer suppress arbitrary errors. Simplify the code. (cherry picked from commit e1c295e3da9ff5a3eb6b009a1f821d80e564ac87) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101538: Add experimental wasi-threads build (GH-101537) (#106834)Miss Islington (bot)2023-07-175-3/+53
| | | | | | | (cherry picked from commit d8f87cdf94a6533c5cf2d25e09e6fa3eb06720b9) Co-authored-by: YAMAMOTO Takashi <yamamoto@midokura.com> Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-106368: Increase Argument Clinic test coverage for cpp.Monitor ↵Miss Islington (bot)2023-07-172-1/+180
| | | | | | | (GH-106833) (#106838) (cherry picked from commit 22379c60ab8f8b49e75da9bd032a8722af50b409) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c ↵Miss Islington (bot)2023-07-172-3/+6
| | | | | | | | (GH-106832) (#106835) gh-106831: Fix NULL check of d2i_SSL_SESSION() result in _ssl.c (GH-106832) (cherry picked from commit ebf2c56b33553a448da8f60fcd89a622f071b5f4) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106687: _ssl: use uint64_t for SSL options (GH-106700) (#106827)Miss Islington (bot)2023-07-172-26/+78
| | | | | | | | | | | | | gh-106687: _ssl: use uint64_t for SSL options (GH-106700) SSL_CTX_get_options() uses uint64_t for options: https://www.openssl.org/docs/man3.1/man3/SSL_CTX_get_options.html Fix this compiler warning on Windows with MSC: conversion from 'uint64_t' to 'long', possible loss of data (cherry picked from commit ad95c7253a70e559e7d3f25d53f4772f28bb8b44) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-106780: Add __match_args__ to tutorial example (GH-106784) (#106819)Miss Islington (bot)2023-07-171-1/+7
| | | | | | | Add Point definition with this attribute before example that needs it. (cherry picked from commit 7aa89e505d893cd5e6f33b84d66e5fa769089931) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] Add more recipe tests. Make the factor recipe a bit faster and ↵Miss Islington (bot)2023-07-171-3/+8
| | | | clearer. (GH-106817) (GH-106818)
* Doc: fix section levels of devmode doc (GH-106801)Inada Naoki2023-07-161-3/+3
| | | (cherry picked from commit e58960160fcb4fce63177fcd9ef605f887377767)
* [3.12] Docs search: Replace jQuery with vanilla JavaScript (GH-106743) (#106802)Miss Islington (bot)2023-07-161-30/+44
| | | | | | | | | Docs search: Replace jQuery with vanilla JavaScript (GH-106743) * Replace jQuery with vanilla JavaScript * Switch 'var' to 'const' or 'let' (cherry picked from commit c02ee4503151105dc892018ebc7f633e7f3f62f8) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Doc: devmode: add -Xdev option to example (GH-106253)Miss Islington (bot)2023-07-161-1/+1
| | | | | | Doc: devmode: add -Xdev option to example (GH-106253) (cherry picked from commit 83bd568d2b57337a91ef046c1f52f9ebb03a7803) Co-authored-by: Simone Rubino <daemo00@gmail.com>
* wasm: do not use inline comment in .editorconfig (GH-106610)Miss Islington (bot)2023-07-161-1/+2
| | | | | | | It is no longer valid since 0.15.0 https://github.com/editorconfig/specification/blob/v0.15/index.rstGH-no-inline-comments (cherry picked from commit 64c0890b697783db9b3f67e3bb4dcee1165a0b9b) Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
* [3.12] Docs: Normalize Argument Clinic How-To section capitalization ↵Miss Islington (bot)2023-07-151-11/+18
| | | | | | | (GH-106788) (#106791) (cherry picked from commit 8c177294899b621fe04ae755abd41b4d319dd4b5) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] Add more examples to the recipe docs (GH-106782) (GH-106783)Miss Islington (bot)2023-07-151-0/+2
|
* [3.12] gh-106752: Sync with zipp 3.16.2 (GH-106757) (#106777)Miss Islington (bot)2023-07-156-27/+204
| | | | | | | | | | gh-106752: Sync with zipp 3.16.2 (GH-106757) * gh-106752: Sync with zipp 3.16.2 * Add blurb (cherry picked from commit 22980dc7c9dcec4b74fea815542601ef582c230e) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.12] gh-106745: typing docs: Clarify that removal of PEP-585 aliases is ↵Alex Waygood2023-07-151-26/+45
| | | | not currently planned (#106748) (#106772)
* [3.12] gh-106368: Increase Argument Clinic BlockParser test coverage ↵Miss Islington (bot)2023-07-151-4/+96
| | | | | | | (GH-106759) (#106769) (cherry picked from commit 2d7d1aa4bcd5da0177458b22b1b856db76aa20d4) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-105235: Prevent reading outside buffer during mmap.find() ↵Miss Islington (bot)2023-07-155-3/+161
| | | | | | | | | | | | | | (GH-105252) (#106708) gh-105235: Prevent reading outside buffer during mmap.find() (GH-105252) * Add a special case for s[-m:] == p in _PyBytes_Find * Add tests for _PyBytes_Find * Make sure that start <= end in mmap.find (cherry picked from commit ab86426a3472ab68747815299d390b213793c3d1) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [3.12] gh-106752: Move zipfile._path into its own package (GH-106753) (#106755)Jason R. Coombs2023-07-1411-2/+5
| | | | | | * gh-106752: Move zipfile._path into its own package so it may have supplementary behavior. * Add blurb. (cherry picked from commit 03185f0c150ebc52d41dd5ea6f369c7b5ba9fc16)
* [3.12] gh-106634: Corrected minor asyncio doc issues (GH-106671) (#106712)Miss Islington (bot)2023-07-143-2/+3
| | | | | | gh-106634: Corrected minor asyncio doc issues (GH-106671) (cherry picked from commit 4b4a5b70aa8d47b1e2a0582b741c31b786da762a) Co-authored-by: Chris Brett <chrisbrett665@gmail.com>
* [3.12] gh-106446: Fix failed doctest in stdtypes (GH-106447) (#106741)Miss Islington (bot)2023-07-141-17/+20
| | | | | | (cherry picked from commit 89867d2491c0c3ef77bc237899b2f0762f43c03c) Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-105626: Change the default return value of ↵Miss Islington (bot)2023-07-144-4/+19
| | | | | | | | `HTTPConnection.get_proxy_response_headers` (GH-105628) (#106738) gh-105626: Change the default return value of `HTTPConnection.get_proxy_response_headers` (GH-105628) (cherry picked from commit 490295d651d04ec3b3eff2a2cda7501191bad78a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106368: Increase Argument Clinic test coverage (GH-106728) (#106730)Miss Islington (bot)2023-07-132-0/+590
| | | | | | | - improve output_parameter() coverage - improve coverage for Function.kind (cherry picked from commit ec45c513d389510930a62631a21a1dbb3f3aabb7) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106602: [Enum] Add __copy__ and __deepcopy__ (GH-106695)Miss Islington (bot)2023-07-123-0/+15
| | | | | | gh-106602: [Enum] Add __copy__ and __deepcopy__ (GH-106666) (cherry picked from commit 357e9e9da3929cb9d55ea31896e66f488e44e8f2) Co-authored-by: Prince Roshan <princekrroshan01@gmail.com>
* [3.12] gh-96747: Mention the PyPI `passlib` package in the `crypt` ↵Yonatan Bitton2023-07-121-0/+1
| | | | | deprecation doc (GH-106660) (#106660) * Added mention to passlib package as alternative to the deprecated crypt module.
* [3.12] gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649) (#106680)Miss Islington (bot)2023-07-126-8/+10
| | | | | | gh-99079: Update Windows build to use OpenSSL 3.0.9 (GH-106649) (cherry picked from commit e2d7366fb3df44e7434132636d49f22d6d25cc9f) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original ↵Miss Islington (bot)2023-07-122-1/+3
| | | | | | | | | | | | | | source directory (GH-103213) (#106667) gh-103186: In test_tools.freeze, fetch CONFIG_ARGS from original source directory (GH-103213) Fetch CONFIG_ARGS from the original source directory, instead of from the copied source tree. When "make clean" is executed in the copied source tree, the build directory is cleared and the configure argument lookup fails. However, the original source directory still contains this information. (cherry picked from commit de827322ca47e51d52ff44536a7c3fd44648383a) Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com>
* [3.12] Add Plausible for docs metrics (GH-106644) (#106661)Miss Islington (bot)2023-07-121-0/+1
| | | | | | Add Plausible for docs metrics (GH-106644) (cherry picked from commit e8ab0096a583184fe24dfbc39eff70d270c8e6f4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-96165: Clarify passing ":memory:" in sqlite3.connect() (GH-106451) ↵Miss Islington (bot)2023-07-111-2/+3
| | | | | | | (#106647) (cherry picked from commit f520804b039df0d87fb9df6f1fed2a9bc9df8d61) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.12] gh-96165: Clarify omitting the FROM clause in SQLite queries ↵Miss Islington (bot)2023-07-111-0/+7
| | | | | | | (GH-106513) (#106645) (cherry picked from commit fc7ff1af457e27b7d9752600b3436641be90f598) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.12] gh-102541: Add test case for help() for non_existent_module ↵Miss Islington (bot)2023-07-111-1/+10
| | | | | | | | | | | | | (GH-106340) (#106639) gh-102541: Add test case for help() for non_existent_module (GH-106340) Test fix for when one enters, for instance, 'abd' at the 'help>' prompt. --------- (cherry picked from commit 292ac4bfe92768140c2d383fd329cfa1949869b2) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-106625 : Add missing code to tutorial 4.6 example (GH-106623) ↵Miss Islington (bot)2023-07-111-2/+3
| | | | | | | | (#106636) (cherry picked from commit d0b7e18262e69dd4b8252e804e4f98fc9533bcd6) Co-authored-by: RustyNail <takonoyawarakaage@yahoo.co.jp> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-106403: Restore weakref support for TypeVar and friends ↵Miss Islington (bot)2023-07-113-5/+42
| | | | | | | | (GH-106418) (#106635) gh-106403: Restore weakref support for TypeVar and friends (GH-106418) (cherry picked from commit 945d3cbf2e8e756ed16c3ec51106e6157abb2698) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Merge branch '3.12' of https://github.com/python/cpython into 3.12Thomas Wouters2023-07-113-1/+13
|\
| * [3.12] gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627) ↵Miss Islington (bot)2023-07-113-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | (#106632) gh-106498: Revert incorrect colorsys.rgb_to_hls change (GH-106627) gh-86618 assumed a-b-c = a-(b+c) = a-d where d = b+d. For floats 2.0, 1.0, and 0.9999999999999999, this assumption is false. The net change of 1.1102230246251565e-16 to 0.0 results in division by 0. Revert the replacement. Add test. (cherry picked from commit a2d54d4e8ab12f967a220be88bde8ac8227c5ab3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* | Post 3.12.0b4Thomas Wouters2023-07-111-1/+1
| |
* | Python 3.12.0b4v3.12.0b4Thomas Wouters2023-07-1135-82/+337
|/
* [3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist ↵Miss Islington (bot)2023-07-113-61/+86
| | | | | | | | | | | | | | | | | (GH-106468) (#106620) gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) For example: class Flag(enum.Flag): A = 0x01 B = 0x02 MASK = 0xff ~Flag.MASK is Flag(0) (cherry picked from commit 95b7426f45edb570869a5513c142f29ed9f851a1) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>