summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) ↵Serhiy Storchaka2023-07-2319-44/+89
| | | | | | | | | | | | | | (#107060) * [3.12] gh-106948: Add standard external names to nitpick_ignore (GH-106949) It includes standard C types, macros and variables like "size_t", "LONG_MAX" and "errno", and standard environment variables like "PATH". (cherry picked from commit f8b7fe2f2647813ae8249675a80e59c117d30fe1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Delete 2023-05-31-18-37-57.gh-issue-105156.R4El5V.rst
* [3.12] gh-107017: removed mention that C does it the same way (GH-107020) ↵Miss Islington (bot)2023-07-231-8/+15
| | | | | | (#107097) Co-authored-by: Jakub Červinka <cervinka.jakub.1989@gmail.com>
* [3.12] gh-71261: Add paragraph on shadowing submodules with star imports ↵Miss Islington (bot)2023-07-231-0/+16
| | | | | | (GH-107004) (#107100) Co-authored-by: wulmer <wulmer@users.noreply.github.com>
* [3.12] gh-102111: Add link to string escape sequences in re module ↵Miss Islington (bot)2023-07-232-2/+6
| | | | | | | (GH-106995) (#107096) Co-authored-by: wulmer <wulmer@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-106962: Detect mpicc in configure.ac (GH-106961) (#107081)Miss Islington (bot)2023-07-233-0/+7
| | | | | | | Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied. (cherry picked from commit 9a6b278769b9f24e0650283f6c347db8ae52b7b3) Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
* [3.12] GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS ↵Victor Stinner2023-07-225-29/+29
| | | | | | | | | | | | (#107069) (#107075) GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069) Rename private C API constants: * Rename PY_MONITORING_UNGROUPED_EVENTS to _PY_MONITORING_UNGROUPED_EVENTS * Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (cherry picked from commit 0927a2b25c059988e237108605ed8ab0c5459c53)
* gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854)Miss Islington (bot)2023-07-221-21/+25
| | | | | | | gh-106847: Add -X warn_default_encoding in sys.flags Doc (GH-106854) (cherry picked from commit fd84ac0ee0a8d5e34e0a106eed7e50539b61c5f8) Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-107028: tiny textual changes in logging docs and docstrings ↵Miss Islington (bot)2023-07-222-5/+6
| | | | | (GH-107029) (GH-107065) (cherry picked from commit 5e5a34ac3a827e040cd89426b1774fec2123336a)
* [3.12] gh-83006: Document behavior of `shutil.disk_usage` for non-mounted ↵Miss Islington (bot)2023-07-222-0/+8
| | | | | | | filesystems on Unix (GH-107031) (#107047) (cherry picked from commit 6e5f2235f3754307292c7d8d3698958136b5e311) Co-authored-by: Matthieu Caneill <matthieucan@users.noreply.github.com>
* [3.12] gh-107008: Document the curses module variables LINES and COLS ↵Miss Islington (bot)2023-07-223-3/+23
| | | | | | | | | (GH-107011) (GH-107057) LINES and COLS referred in curses.update_lines_cols() documentations are the module variables, not the environment variables. (cherry picked from commit 26e08dfdd7ac1b3d567d30cd35e4898121580390) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix Sphinx warnings in `re` module docs (GH-107044) (#107046)Miss Islington (bot)2023-07-222-6/+18
| | | | | | Fix Sphinx warnings in `re` module docs (GH-107044) (cherry picked from commit 149748ea4f552e6fe43a1d6d69bd65910a7c4813) Co-authored-by: wulmer <wulmer@users.noreply.github.com>
* [3.12] gh-105090: Replace incorrect TLSv1.2 with TLSv1.3 (GH-105404) (#107040)Miss Islington (bot)2023-07-221-1/+1
| | | | Co-authored-by: Jocelyn Castellano <admin@malwarefight.gq>
* [3.12] Bump sphinx-lint to 0.6.8 (gh-106978) (#107023)Sven Arends2023-07-221-1/+1
|
* [3.12] gh-106989: Remove tok report warnings (GH-106993) (#107013)Miss Islington (bot)2023-07-222-6/+0
| | | | Co-authored-by: Menelaos Kotoglou <contact@menelaoskotoglou.com>
* [3.12] Reformat code block to make it easier to read (GH-106965) (#107010)Miss Islington (bot)2023-07-221-5/+14
| | | | | (cherry picked from commit ed491d9f782480fb00535abcf667027e0e323287) Co-authored-by: Joe Kaufeld <opensource@joekaufeld.com>
* [3.12] gh-106714: Fix test_capi to not write a coredump (GH-107007) (#107009)Miss Islington (bot)2023-07-222-3/+12
| | | | | | | | | gh-106714: Fix test_capi to not write a coredump (GH-107007) test_capi: Fix test_no_FatalError_infinite_loop() to no longer write a coredump, by using test.support.SuppressCrashReport. (cherry picked from commit 4a1026d7647c084b0dc80dd49163d16ba12a2e55) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-106368: Increase coverage for Argument Clinic output directive ↵Miss Islington (bot)2023-07-221-0/+53
| | | | | | | (GH-106979) (#106994) (cherry picked from commit ee5c01b473eeadb007b9f330db3143e34e46038b) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106970: Fix Argument Clinic 'destination <name> clear' command ↵Miss Islington (bot)2023-07-224-8/+77
| | | | | | | | | | | | | | | (GH-106972) (#106983) Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail(). (cherry picked from commit 3372bcba9893030e4063a9264ec0b4d1b6166883) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-106973: Change non-integral to non-integer in "3.12 What's New" ↵Miss Islington (bot)2023-07-221-1/+1
| | | | | | (GH-106984) (#106986) Co-authored-by: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com>
* [3.12] gh-105699: Fix an Interned Strings Crasher (gh-106930) (#106963)Miss Islington (bot)2023-07-212-1/+15
| | | | | | | | | | | | gh-105699: Fix an Interned Strings Crasher (gh-106930) A static (process-global) str object must only have its "interned" state cleared when no longer interned in any interpreters. They are the only ones that can be shared by interpreters so we don't have to worry about any other str objects. We trigger clearing the state with the main interpreter, since no other interpreters may exist at that point and _PyUnicode_ClearInterned() is only called during interpreter finalization. We do not address here the fact that a string will only be interned in the first interpreter that interns it. In any subsequent interpreters str.state.interned is already set so _PyUnicode_InternInPlace() will skip it. That needs to be addressed separately from fixing the crasher. (cherry picked from commit 87e7cb09e4258c4deb01a07dc52c1021907195d7) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-105699: Fix a Crasher Related to a Deprecated Global Variable ↵Miss Islington (bot)2023-07-212-4/+11
| | | | | | | | | | (gh-106923) (#106964) gh-105699: Fix a Crasher Related to a Deprecated Global Variable (gh-106923) There was a slight race in _Py_ClearFileSystemEncoding() (when called from _Py_SetFileSystemEncoding()), between freeing the value and setting the variable to NULL, which occasionally caused crashes when multiple isolated interpreters were used. (Notably, I saw at least 10 different, seemingly unrelated spooky-action-at-a-distance, ways this crashed. Yay, free threading!) We avoid the problem by only setting the global variables with the main interpreter (i.e. runtime init). (cherry picked from commit 0ba07b2108d4763273f3fb85544dde34c5acd40a) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.12] gh-106892: Use roles :data: and :const: for referencing module ↵Serhiy Storchaka2023-07-2140-111/+111
| | | | | variables (GH-106894) (GH-106954) (cherry picked from commit d036db728ea3d54509cbad06df74e2d9a31fbec8)
* [3.12] gh-106909: Use role :const: for referencing module constants ↵Serhiy Storchaka2023-07-2164-238/+238
| | | | | (GH-106910) (GH-106956) (cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)
* [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>