summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* [3.12] gh-103968: What's New: Add porting hints for PyType_From with ↵Miss Islington (bot)2023-07-111-1/+25
| | | | | | | | metaclasses (GH-105698) (GH-106619) gh-103968: What's New: Add porting hints for PyType_From with metaclasses (GH-105698) (cherry picked from commit af5cf1e75136fcef967d4ebe1bc45f29e6dc1bcf) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-102988: Detect email address parsing errors and return empty tuple ↵Miss Islington (bot)2023-07-105-10/+172
| | | | | | | | | | | | | | to indicate the parsing error (old API) (GH-105127) (#106612) gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (GH-105127) Detect email address parsing errors and return empty tuple to indicate the parsing error (old API). This fixes or at least ameliorates CVE-2023-27043. --------- (cherry picked from commit 18dfbd035775c15533d13a98e56b1d2bf5c65f00) Co-authored-by: Thomas Dwyer <github@tomd.tel> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-94777: Fix deadlock in ProcessPoolExecutor (GH-94784) (#106609)Miss Islington (bot)2023-07-103-0/+23
| | | | | | | | gh-94777: Fix deadlock in ProcessPoolExecutor (GH-94784) Fixes a hang in multiprocessing process pool executor when a child process crashes and code could otherwise block on writing to the pipe. See GH-94777 for more details. (cherry picked from commit 6782fc050281205734700a1c3e13b123961ed15b) Co-authored-by: Louis Paulot <55740424+lpaulot@users.noreply.github.com>
* [3.12] gh-103186: Fix or catch 'extra' stderr output from unittests ↵Miss Islington (bot)2023-07-103-7/+14
| | | | | | | | | | | | | | | | | | | (GH-103196) (#106605) gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196) Reduce test noise by fixing or catching and testing stderr messages from individual tests. test_cmd_line_script.test_script_as_dev_fd calls spawn_python and hence subprocess.Popen with incompatible arguments. On POSIX, pass_fds forces close_fds to be True (subprocess.py line 848). Correct the call. test_uuid.test_cli_namespace_required_for_uuid3: when the namespace is omitted, uuid.main calls argparse.Argument_Parser.error, which prints to stderr before calling sys.exit, which raises SystemExit. Unittest assertRaises catches the exception but not the previous output. Catch the output and test it. test_warnings.test_catchwarnings_with_simplefilter_error similarly prints before raising. Catch the output and test it. --------- (cherry picked from commit 9d582250d8fde240b8e7299b74ba888c574f74a3) Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* [3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595)Serhiy Storchaka2023-07-102-1/+972
| | | | Add tests for codecs. (cherry picked from commit 51ea664d18938645521bdd128a3c55f9c197644c)
* [3.12] gh-105227: Add PyType_GetDict() (GH-105747) (#106600)Miss Islington (bot)2023-07-106-1/+68
| | | | | | | | | | gh-105227: Add PyType_GetDict() (GH-105747) This compensates for static builtin types having `tp_dict` set to `NULL`. (cherry picked from commit a840806d338805fe74a9de01081d30da7605a29f) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] Clarify how topics.py gets created. (GH-106121) (#106579)Miss Islington (bot)2023-07-101-0/+1
| | | | | | | | | | | | | | Clarify how topics.py gets created. (GH-106121) When changing docs, it was easy to find text in topics.py, and I wondered whether I was supposed to edit it. Thankfully, the top of the file says it's auto-generated, so I knew I didn't have to edit it. But I didn't know what started the auto-generation process. It's part of the release process, so I'll leave a note here for future editors. (cherry picked from commit dac1e364901d3668742e6eecc2ce63586330c11f) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.12] gh-106461: typing: Consolidate docs on `Callable` (GH-106462) (#106574)Miss Islington (bot)2023-07-091-55/+75
| | | | | | gh-106461: typing: Consolidate docs on `Callable` (GH-106462) (cherry picked from commit ca8b55c7f54b38e264056148075a8061a7082013) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] Move implementation specific RE tests to separate class (GH-106563) ↵Miss Islington (bot)2023-07-091-66/+69
| | | | | | | | (#106564) Move implementation specific RE tests to separate class (GH-106563) (cherry picked from commit 8cb6f9761e3c1cff3210697e3670b57591bf2e7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-106510: Fix DEBUG output for atomic group (GH-106511) (GH-106548)Miss Islington (bot)2023-07-083-2/+8
| | | | | (cherry picked from commit 74ec02e9490d8aa086aa9ad9d1d34d2ad999b5af) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101880: add link to object.__hash__() in hash() builtin ↵Miss Islington (bot)2023-07-081-1/+1
| | | | | | | | documentation (GH-101883) (#106546) gh-101880: add link to object.__hash__() in hash() builtin documentation (GH-101883) (cherry picked from commit ec7180bd1b3c156d4484e8e6babc5ecb707420e3) Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
* [3.12] gh-106524: Fix a crash in _sre.template() (GH-106525) (GH-106544)Miss Islington (bot)2023-07-083-0/+13
| | | | | | | | Some items remained uninitialized if _sre.template() was called with invalid indices. Then attempt to clear them in the destructor led to dereferencing of uninitialized pointer. (cherry picked from commit 2ef1dc37f02b08536b677dd23ec51541a60effd7) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-106300: Improve `assertRaises(Exception)` usages in tests ↵Miss Islington (bot)2023-07-077-12/+20
| | | | | | | | (GH-106302) (GH-106534) gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) (cherry picked from commit 6e6a4cd52332017b10c8d88fbbbfe015948093f4) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on ↵Miss Islington (bot)2023-07-073-0/+4
| | | | | | | | close(). (GH-106504) (#106514) gh-106503: asyncio._SelectorSocketTransport: fix cyclic reference on close(). (GH-106504) (cherry picked from commit 3e5ce7968f5ab715f649e296e1f6b499621b8091) Co-authored-by: Andrew Geng <pteromys@gmail.com>
* [3.12] closes gh-106479: fix typo in __cplusplus macro (gh-106480) (#106493)Miss Islington (bot)2023-07-061-1/+1
| | | | | | closes gh-106479: fix typo in __cplusplus macro (gh-106480) (cherry picked from commit 67a798888dcde13bbb1e17cfcc3c742c94e67a07) Co-authored-by: Dustin Rodrigues <dust.rod@gmail.com>
* [3.12] gh-90876: Restore the ability to import multiprocessing when ↵Miss Islington (bot)2023-07-063-8/+83
| | | | | | | | | | | | | | `sys.executable` is `None` (GH-106464) (#106494) gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (GH-106464) Prevent `multiprocessing.spawn` from failing to *import* in environments where `sys.executable` is `None`. This regressed in 3.11 with the addition of support for path-like objects in multiprocessing. Adds a test decorator to have tests only run when part of test_multiprocessing_spawn to `_test_multiprocessing.py` so we can start to avoid re-running the same not-global-state specific test in all 3 modes when there is no need. (cherry picked from commit c60df361ce2d734148d503f4a711e67c110fe223) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] Clarify state of CancelledError in doc (GH-106453) (#106454)Miss Islington (bot)2023-07-061-1/+1
| | | | | | | | Clarify state of CancelledError in doc (GH-106453) This change makes it explicit that asyncio.CancelledError is not a subclass of Exception. (cherry picked from commit 12a98138083589314d3da14bc97f2d8517947437) Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
* [3.12] Doc: Add missing ref labels to exception groups/notes sections ↵Miss Islington (bot)2023-07-062-0/+4
| | | | | | (GH-106465) (#106473) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>