summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-112092: clarify unstable ABI recompilation requirements ↵Miss Islington (bot)2024-01-181-1/+1
| | | | | | | | | | (GH-112093) (#114260) gh-112092: clarify unstable ABI recompilation requirements (GH-112093) Use different versions in the examples for when extensions do and do not need to be recompiled to make the examples easier to understand. (cherry picked from commit 68a7b78cd5185cbd9456f42c15ecf872a7c16f44) Co-authored-by: DerSchinken <53398996+DerSchinken@users.noreply.github.com>
* [3.12] gh-108303: Move all doctest related files and tests to ↵Miss Islington (bot)2024-01-1818-117/+153
| | | | | | | | | `Lib/test/test_doctest/` (GH-112109) (#114254) gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109) (cherry picked from commit 9c93350f582fe6f5fed2cd873869dfe4fbf2dfe8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Brett Cannon <brett@python.org>
* [3.12] gh-110345: show Tcl/Tk patchlevel in `tkinter._test()` (GH-110350) ↵Miss Islington (bot)2024-01-182-1/+2
| | | | | | | (GH-114253) (cherry picked from commit b8f29b1293f55e12e86a2a039b49b6f9f73851b7) Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
* [3.12] gh-111301: Advertise importlib methods removal in What's new in ↵Miss Islington (bot)2024-01-181-0/+12
| | | | | | | Python 3.12 (GH-111630) (GH-114187) (cherry picked from commit f49752552e673e5192f22eae0076b2650c7d6afc) Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
* [3.12] gh-113205: test_multiprocessing.test_terminate: Shorter sleep for ↵Miss Islington (bot)2024-01-181-1/+9
| | | | | | | | | | | | | | threadpools (GH-114186) (GH-114222) Threads can't be forced to terminate (without potentially corrupting too much state), so the expected behaviour of `ThreadPool.terminate` is to wait for the currently executing tasks to finish. Use shorter sleep time for threadpools, so if a task manages to start, the test doesn't block for long. (cherry picked from commit c1db9606081bdbe0207f83a861a3c70c356d3704) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* [3.12] gh-104522: Fix test_subprocess failure when build Python in the root ↵Miss Islington (bot)2024-01-181-8/+7
| | | | | | | | | home directory (GH-114236) (GH-114239) EPERM is raised when setreuid() fails. EACCES is set in execve() when the test user has not access to sys.executable. (cherry picked from commit 311d1e2701037952eaf75f993be76f3092c1f01c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-114231: Fix indentation in enum.rst (GH-114232) (#114234)Miss Islington (bot)2024-01-181-1/+1
| | | | Co-authored-by: Miyashita Yosuke <44266492+miyashiiii@users.noreply.github.com>
* [3.12] gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' ↵Miss Islington (bot)2024-01-188-42/+45
| | | | | | | | | (GH-114227) (#114228) Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'. (cherry picked from commit 6f4b242a03e521a55f0b9e440703b424ed18ce2f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-114149: [Enum] revert GH-114196 and add more tuple-subclass tests ↵Miss Islington (bot)2024-01-182-9/+24
| | | | | | | | | | (GH-114215) (GH-114218) gh-114149: [Enum] revert GH-114160 and add more tuple-subclass tests (GH-114215) This reverts commit 05e142b1543eb9662d6cc33722e7e16250c9219f. (cherry picked from commit 4c7e09d0129dafddba58979ced9580f856f65efa) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-114211: Update EmailMessage doc about ordered keys (GH-114224) ↵Miss Islington (bot)2024-01-181-3/+3
| | | | | | | | (#114225) Ordered keys are no longer unlike 'real dict's. (cherry picked from commit 8cda72037b262772399b2b7fc36dee9340d74fd6) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-104522: Fix OSError raised when run a subprocess (GH-114195) (#114219)Miss Islington (bot)2024-01-184-18/+29
| | | | | | | | | | | | gh-104522: Fix OSError raised when run a subprocess (GH-114195) Only set filename to cwd if it was caused by failed chdir(cwd). _fork_exec() now returns "noexec:chdir" for failed chdir(cwd). (cherry picked from commit e2c097ebdee447ded1109f99a235e65aa3533bf8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Robert O'Shea <PurityLake@users.noreply.github.com>
* [3.12] gh-112343: pdb: Use tokenize to replace convenience variables ↵Tian Gao2024-01-173-2/+47
| | | | (GH-112380) (#114202)
* [3.12] gh-114149: [Enum] fix tuple subclass handling when using custom ↵Miss Islington (bot)2024-01-173-3/+20
| | | | | | | __new__ (GH-114160) (GH-114196) (cherry picked from commit 33b47a2c2853066b549f242065f6c2e12e18b33b) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.12] gh-38807: Fix race condition in Lib/trace.py (GH-110143) (GH-114206)Miss Islington (bot)2024-01-172-2/+4
| | | | | | | Instead of checking if a directory does not exist and thereafter creating it, directly call os.makedirs() with the exist_ok=True. (cherry picked from commit 78fcde039a33d8463e34356d5462fecee0f2831a) Co-authored-by: buermarc <44375277+buermarc@users.noreply.github.com>
* [3.12] gh-105102: Fix nested unions in structures when the system byteorder ↵Serhiy Storchaka2024-01-173-2/+23
| | | | | | | is the opposite (GH-105106) (GH-114204) (cherry picked from commit 0b541f64c472976b2fee1ec9919bc7b02a798242) Co-authored-by: Sheidan <37596668+Sh3idan@users.noreply.github.com>
* [3.12] Fix typo in tkinter.ttk.rst (GH-106157) (GH-114200)Miss Islington (bot)2024-01-171-1/+1
| | | | | (cherry picked from commit 7573c44c3278eacf0233146037d843bb2563877a) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
* [3.12] gh-114070: fix token reference warnings in expressions.rst ↵Miss Islington (bot)2024-01-171-2/+3
| | | | | | (GH-114169) (#114192) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-104282: Fix null pointer dereference in ↵Miss Islington (bot)2024-01-173-1/+14
| | | | | | | `lzma._decode_filter_properties` (GH-104283) (GH-114181) (cherry picked from commit 0154405350c272833bd51f68138223655e142a37) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` ↵Miss Islington (bot)2024-01-172-0/+49
| | | | | | | | | (GH-112557) (GH-114119) gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557) (cherry picked from commit a482bc67ee786e60937a547776fcf9528810e1ce) Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.12] gh-72284: Revise lists in IDLE doc (GH-114174) (#114175)Miss Islington (bot)2024-01-174-79/+60
| | | | | | | | | | | Tkinter is a fact, not necessarily a feature. Reorganize editor key bindings in a logical order and remove those that do not work, at least on Windows. Improve shell bindings list. (cherry picked from commit 4a32275389d94ba41f8881c32ad4b232effb1c6f) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. ↵Miss Islington (bot)2024-01-171-1/+1
| | | | | | | | | (GH-114168) (#114170) This matches Firefox format. Edge double-spaces non-simple lists but I think it looks worse. (cherry picked from commit e07a400c310ad3bdd72bb0ae401991af17435e4d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-112043: Align concurrent.futures.Executor.map docs with ↵Miss Islington (bot)2024-01-171-5/+5
| | | | | | | | implementation (GH-114153) (#114164) The first parameter is named 'fn', not 'func'. (cherry picked from commit 8d26db45df479a54eccd2aced7d8a5ea9fd0ffa5) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.12] gh-88531 Fix dataclass __post_init__/__init__ interplay documentation ↵Miss Islington (bot)2024-01-171-3/+3
| | | | | | | | (gh-107404) (#114162) * Simplify __post_init__ example usage. It applies to all base classes, not just dataclasses. (cherry picked from commit 05008c27b73da640b63c0d335c65ade517c0eb84) Co-authored-by: Steffen Zeile <48187781+Kaniee@users.noreply.github.com>
* [3.12] gh-106293: Fix typos in Objects/object_layout.md (GH-106294) (#114158)Miss Islington (bot)2024-01-161-3/+3
| | | | | | (cherry picked from commit 60ca37fdee52cc4ff318b6e9ddbb260e8583b33b) Co-authored-by: Mano Sriram <mano.sriram0@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-94220: Align fnmatch docs with the implementation and amend markup ↵Miss Islington (bot)2024-01-161-12/+14
| | | | | | | | | | | | | (GH-114152) (#114155) - Align the argument spec for fnmatch functions with the actual implementation. - Update Sphinx markup to recent recommandations. - Add link to 'iterable' glossary entry. (cherry picked from commit 6e84f3b56f445b56ab48723d636c0a17090298ab) Co-authored-by: Erlend E. Aasland <erlend@python.org> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] GH-78988: Document `pathlib.Path.glob()` exception propagation. ↵Barney Gale2024-01-161-0/+4
| | | | | | | | (GH-114036) (#114154) We propagate the `OSError` from the `is_dir()` call on the top-level directory, and suppress all others. (cherry picked from commit 7092b3f1319269accf4c02f08256d51f111b9ca3)
* [3.12] gh-113659: Skip hidden .pth files (GH-113660) (GH-114143)Miss Islington (bot)2024-01-163-1/+52
| | | | | | Skip .pth files with names starting with a dot or hidden file attribute. (cherry picked from commit 74208ed0c440244fb809d8acc97cb9ef51e888e3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Fix 'expresion' typo in IDLE doc (GH-114130) (#114139)Miss Islington (bot)2024-01-161-48/+71
| | | | | | The substantive change is on line 577/593. Rest is header/footer stuff ignored when displaying. (cherry picked from commit 7a24ecc953e1edc9c5bbedbd19cc587c3ff635ea) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-114096: Restore privileges in _winapi.CreateJunction after creating the ↵Miss Islington (bot)2024-01-162-7/+24
| | | | | | | | junction (GH-114089) This avoids impact on later parts of the application which may be able to do things they otherwise shouldn't. (cherry picked from commit de4ced54eb08e8630e3b6c13436d4ecc3fb14708) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Docs: Improve multiprocessing.SharedMemory reference (#114093) (#114137)Erlend E. Aasland2024-01-161-17/+23
| | | | | | | | | | | (cherry picked from b1db6278cf6e60efdeca96244e5d73df4f070bea) Align the multiprocessing shared memory docs with Diatáxis's recommendations for references. - use a parameter list for the SharedMemory.__init__() argument spec - use the imperative mode - use versionadded, not versionchanged, for added parameters - reflow touched lines according to SemBr
* [3.12] gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121) ↵Miss Islington (bot)2024-01-161-16/+44
| | | | | | | | | | | | (#114129) gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121) Also, don't skip the whole collect_windows() if ctypes is missing. Log also ctypes.windll.shell32.IsUserAnAdmin(). (cherry picked from commit c77f552ec02040dfe14a0a3cb743d96eedffadec) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-114069: Revise Tutorial Methods paragraph (GH-114127) (#114131)Miss Islington (bot)2024-01-161-6/+5
| | | | | | | | gh-114069: Revise Tutorial Methods paragraph (GH-114127) Remove excess words in the first and third sentences. (cherry picked from commit 31a2543c80e1e38c97e50533249d9aa00e2f6cae) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] gh-113858: GH Actions: Make ccache smaller (GH-113859, GH-113945) ↵Petr Viktorin2024-01-162-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | (GH-114082) This backports 3 PRs: - https://github.com/python/cpython/pull/113859 Only save ccache on pushes - https://github.com/python/cpython/pull/113945 Cut down ccache size - Only save the ccache in the main reusable builds, not on builds that don't use special build options: - Generated files check - OpenSSL tests - Hypothesis tests - Halve the max cache size, to 200M - https://github.com/python/cpython/pull/114113 Fixup for the above Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] Docs: Align multiprocessing.shared_memory docs with Sphinx ↵Erlend E. Aasland2024-01-162-49/+56
| | | | | | | | | | | recommendations (#114103) (#114112) (cherry picked from commit af852740862169cf3e8789a13b86a7b1d03b91db) - add :class: and :mod: markups where needed - fix incorrect escaping of a star in ShareableList arg spec - mark up parameters with stars: *val* - mark up list of built-in types using list markup - remove unneeded parentheses from :meth: markups
* [3.12] gh-114077: Fix OverflowError in socket.sendfile() when pass count ↵Miss Islington (bot)2024-01-162-1/+3
| | | | | | | >2GiB (GH-114079) (GH-114110) (cherry picked from commit d4dfad2aa9e76038302b0c5a29ebacc2723ed50d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] Update KDE recipe to match the standard use of the h parameter ↵Raymond Hettinger2024-01-161-7/+5
| | | | (gh-113958) (#114098)
* [3.12] gh-114070: correct the specification of ``digit`` in the float() docs ↵Miss Islington (bot)2024-01-151-5/+4
| | | | | | | | (GH-114080) (#114094) gh-114070: correct the specification of ``digit`` in the float() docs (GH-114080) (cherry picked from commit 4f24b92aa0677ed5310dd2d1572b55f4e30c88ef) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* [3.12] gh-109862: Fix test_create_subprocess_with_pidfd when it was run ↵Miss Islington (bot)2024-01-151-2/+7
| | | | | | | separately (GH-113991) (GH-114072) (cherry picked from commit f8a79109d0c4f408d34d51861cc0a7c447f46d70) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and ↵Hugo van Kemenade2024-01-148-48/+48
| | | | | `library/http.client.rst` (GH-114060) (#114063) (cherry picked from commit c2808431b32fa7bc0d222d4549389f781f1a7333)
* [3.12] gh-101225: Increase the socket backlog when creating a ↵Miss Islington (bot)2024-01-143-2/+6
| | | | | | | | | | | | | | multiprocessing.connection.Listener (GH-113567) (#114018) gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) Increase the backlog for multiprocessing.connection.Listener` objects created by `multiprocessing.manager` and `multiprocessing.resource_sharer` to significantly reduce the risk of getting a connection refused error when creating a `multiprocessing.connection.Connection` to them. (cherry picked from commit c7d59bd8cfa053e77ae3446c82afff1fd38a4886) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-95649: Document that asyncio contains uvloop code (GH-107536) ↵Alois Klink2024-01-147-0/+49
| | | | | | | | | | | | (#114046) Some of the asyncio SSL changes in GH-31275 [1] were taken from v0.16.0 of the uvloop project [2]. In order to comply with the MIT license, we need to just need to document the copyright information. [1]: https://github.com/python/cpython/pull/31275 [2]: https://github.com/MagicStack/uvloop/tree/v0.16.0 (cherry picked from commit dce30c9cbc212e5455e100f35ac6afeb30dfd23e)
* [3.12] gh-114014: Update `fractions.Fraction()`'s rational parsing regex ↵Miss Islington (bot)2024-01-133-10/+35
| | | | | | | | | | | | | | (GH-114015) (#114023) Fix a bug in the regex used for parsing a string input to the `fractions.Fraction` constructor. That bug led to an inconsistent exception message being given for some inputs. --------- (cherry picked from commit dd56b5748317c3d504d6a9660d9207620c547f5c) Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.12] gh-114021: Pin various sphinxcontrib extensions to older versions ↵Ronald Oussoren2024-01-131-5/+5
| | | | (#114022)
* [3.12] gh-89159: Document missing TarInfo members (GH-91564) (#114006)Miss Islington (bot)2024-01-121-0/+30
| | | | | | gh-89159: Document missing TarInfo members (GH-91564) (cherry picked from commit 3aa4b839e4aa01d4e8bc5c7685fd0eb17c4609b8) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* [3.12] datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599) ↵Miss Islington (bot)2024-01-121-1/+1
| | | | | | | | (#114004) datamodel: Fix a typo in ``object.__init_subclass__`` (GH-111599) (cherry picked from commit a47353d587b78bb5501b21343d9bca739c49a43a) Co-authored-by: InSync <122007197+InSyncWithFoo@users.noreply.github.com>
* [3.12] Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292) ↵Miss Islington (bot)2024-01-121-4/+4
| | | | | | | | | | | | (#114002) Link to the glossary for "magic methods" in ``MagicMock`` (GH-111292) The MagicMock documentation mentions magic methods several times without actually pointing to the term in the glossary. This can be helpful for people to fully understand what those magic methods are. (cherry picked from commit e97da8677f7bbc6d970e230d334cd646ab662af1) Co-authored-by: Pierre Equoy <pierre.equoy@canonical.com>
* [3.12] gh-101100: Fix Sphinx Lint warnings in `Misc/` (GH-113946) (#113998)Hugo van Kemenade2024-01-1245-338/+338
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.12] Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) ↵Miss Islington (bot)2024-01-121-1/+1
| | | | | | | | (#113999) Tutorial: Clarify 'nonzero exit status' in the appendix (GH-112039) (cherry picked from commit 32f3684b8f18d757945eee67a697cb4a95c697db) Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
* gh-111877: Fixes stat() handling for inaccessible files on Windows (GH-113716)Miss Islington (bot)2024-01-123-6/+72
| | | | | (cherry picked from commit ed066481c76c6888ff5709f5b9f93b92c232a4a6) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Docs: Amend codeobject.co_lines docs; end number is exclusive ↵Miss Islington (bot)2024-01-121-3/+3
| | | | | | | | (GH-113970) (#113987) The end number should be exclusive, not inclusive. (cherry picked from commit e68806c7122070078507b370b13bb225f8501ff8) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>