summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.13] gh-120244: Fix re.sub() reference leak (GH-120245) (GH-120264)Miss Islington (bot)2024-06-082-0/+2
| | | | | (cherry picked from commit 38a25e9560cf0ff0b80d9e90bce793ff24c6e027) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* [3.13] gh-120242: Fix handling of `[setUp,tearDown]Class` in `test_datetime` ↵Miss Islington (bot)2024-06-081-15/+21
| | | | | | | | (GH-120243) (#120259) gh-120242: Fix handling of `[setUp,tearDown]Class` in `test_datetime` (GH-120243) (cherry picked from commit 95f4db88d5ab7d900f05d0418b2a2e77bf9ff126) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] gh-120225: fix crash in compiler on empty block at end of exception ↵Miss Islington (bot)2024-06-073-6/+13
| | | | | | | | handler (GH-120235) (#120249) gh-120225: fix crash in compiler on empty block at end of exception handler (GH-120235) (cherry picked from commit 4fc82b6d3b99f873179937215833e7a573ca7876) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner ↵Miss Islington (bot)2024-06-072-3/+4
| | | | | | | | case (GH-120214) (#120237) gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case (GH-120214) (cherry picked from commit 10fb1b8f36ab2fc3d2fe7392d5735dd19c5e2365) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.13] gh-120155: Fix copy/paste error in HAVE_SUBOFFSETS_IN_LAST_DIM() ↵Miss Islington (bot)2024-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | (GH-120228) (#120238) gh-120155: Fix copy/paste error in HAVE_SUBOFFSETS_IN_LAST_DIM() (GH-120228) Don't hardcode 'dest' in HAVE_SUBOFFSETS_IN_LAST_DIM() macro of memoryobject.c, but use its 'view' parameter instead. Fix the Coverity issue: Error: COPY_PASTE_ERROR (CWE-398): Python-3.12.2/Objects/memoryobject.c:273:14: original: ""dest->suboffsets + (dest->ndim - 1)"" looks like the original copy. Python-3.12.2/Objects/memoryobject.c:274:14: copy_paste_error: ""dest"" in ""src->suboffsets + (dest->ndim - 1)"" looks like a copy-paste error. Python-3.12.2/Objects/memoryobject.c:274:14: remediation: Should it say ""src"" instead? GH- 272| assert(dest->ndim > 0 && src->ndim > 0); GH- 273| return (!HAVE_SUBOFFSETS_IN_LAST_DIM(dest) && GH- 274|-> !HAVE_SUBOFFSETS_IN_LAST_DIM(src) && GH- 275| dest->strides[dest->ndim-1] == dest->itemsize && GH- 276| src->strides[src->ndim-1] == src->itemsize); (cherry picked from commit 90b75405260467814c93738a3325645918d4ea51) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-94808: Add test coverage for "starred kind" in ↵Miss Islington (bot)2024-06-071-0/+6
| | | | | | | | | | _PyPegen_set_expr_context (GH-119222) (GH-119263) gh-94808: Add test coverage for "starred kind" in _PyPegen_set_expr_context (GH-119222) Add test coverage for "starred kind" in _PyPegen_set_expr_context (cherry picked from commit 8231a24454c854ea22590fd74733d29e4274122d) Co-authored-by: Mark Jason Dominus (陶敏修) <mjd@pobox.com>
* [3.13] gh-120211: Fix tkinter.ttk with Tcl/Tk 9.0 (GH-120213) (GH-120215)Miss Islington (bot)2024-06-072-3/+7
| | | | | | | * Use new methods for tracing Tcl variable. * Fix Combobox.current() for empty combobox. (cherry picked from commit d68a22e7a68ae09f7db61d5a1a3bd9c0360cf3ee) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-110383: Improve 'old string formatting' text in tutorial ↵Miss Islington (bot)2024-06-071-3/+5
| | | | | | | (GH-120219) (#120229) (cherry picked from commit 225aab7f70d804174cc3a75bc04a5bb1545e5adb) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.13] gh-112672: Fix builtin Tkinter with Tcl 9.0 (GH-112681) (GH-120208)Miss Islington (bot)2024-06-072-14/+25
| | | | | | | | | * Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. (cherry picked from commit e0799352823289fafb8131341abd751923ee9c08) Co-authored-by: Christopher Chavez <chrischavez@gmx.us> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-110383: Clarify "non-integral" wording in pow() docs (GH-119688) ↵Miss Islington (bot)2024-06-071-1/+3
| | | | | | | (#120206) (cherry picked from commit 6646a9da26d12fc54263b22dd2916a2f710f1db7) Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
* [3.13] gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) (#120202)Miss Islington (bot)2024-06-071-2/+3
| | | | | | | | | | gh-120164: Fix test_os.test_win32_mkdir_700() (GH-120177) Don't compare the path to avoid encoding issues. (cherry picked from commit d5ba4fc9bc9b2d9eff2a90893e8d500e0c367237) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Eryk Sun <eryksun@gmail.com>
* [3.13] gh-120154: Fix Emscripten/WASI pattern in case statement for LDSHARED ↵Miss Islington (bot)2024-06-072-2/+2
| | | | | | | | (GH-120173) (#120199) Fix Emscripten/WASI pattern in case statement for LDSHARED (cherry picked from commit 47816f465e833a5257a82b759b1081e06381e528) Co-authored-by: Michael Allwright <contact@allwright.io>
* [3.13] Add Plausible for docs metrics (GH-119977) (#120193)Miss Islington (bot)2024-06-072-1/+5
| | | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Julien Palard <julien@palard.fr>
* [3.13] gh-119577: Adjust DeprecationWarning when testing element truth ↵Miss Islington (bot)2024-06-077-13/+21
| | | | | | | | | | values in ElementTree (GH-119762) (GH-120189) gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree (GH-119762) Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases. (cherry picked from commit 6b606522ca97488aad6fe2f193d4511e7a8f8334) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.13] GH-119054: Add "Reading directories" section to pathlib docs ↵Barney Gale2024-06-071-96/+103
| | | | | | | | | | (GH-119956) (#120183) Add a dedicated subsection for `Path.iterdir()`-related methods, specifically `iterdir()`, `glob()`, `rglob()` and `walk()`. (cherry picked from commit 14e1506a6d7056c38fbbc0797268dcf783f91243) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.13] gh-117657: Fix TSAN race involving import lock (GH-118523) (#120169)Miss Islington (bot)2024-06-067-105/+90
| | | | | | | | This adds a `_PyRecursiveMutex` type based on `PyMutex` and uses that for the import lock. This fixes some data races in the free-threaded build and generally simplifies the import lock code. (cherry picked from commit e21057b99967eb5323320e6d1121955e0cd2985e) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] Restore decimal context after decimal doctests (GH-120149) (GH-120167)Miss Islington (bot)2024-06-061-3/+7
| | | | | | The modified context caused tests failures in several other tests. (cherry picked from commit 2d7ff6e0e7d4c08ba84079a5c19a4a485626e1de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-119679: Fix layout of PYD and DLL files on Windows when using PC/layout ↵Miss Islington (bot)2024-06-061-2/+2
| | | | | | | script (GH-120133) (cherry picked from commit cccc9f63c63ae693ccd0e2d8fc6cfd3aa18feb8e) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.13] gh-120111: Don't use cirrus M1 macOS runners on fork (GH-120116) ↵Miss Islington (bot)2024-06-062-5/+14
| | | | | | | | (GH-120152) (cherry picked from commit fd104dfcb838d735ef8128e3539d7a730d403422) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Merge branch '3.13' of https://github.com/python/cpython into 3.13Thomas Wouters2024-06-051-6/+6
|\
| * [3.13] Withdraw most of my ownership in favor of Mark (#120126)Guido van Rossum2024-06-051-6/+6
| | | | | | | | Backport of #119611.
* | Post 3.13.0b2Thomas Wouters2024-06-051-1/+1
| |
* | Python 3.13.0b2v3.13.0b2Thomas Wouters2024-06-0583-201/+847
|/
* [3.13] gh-120065: Increase `collect_in_thread` period to 5 ms. (GH-120068) ↵Miss Islington (bot)2024-06-051-1/+1
| | | | | | | | | | (#120110) This matches the default GIL switch interval. It greatly speeds up the free-threaded build: previously, it spent nearly all its time in `gc.collect()`. (cherry picked from commit 4bba1c9e6cfeaf69302b501a4306668613db4b28) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-119287: clarify doc on BaseExceptionGroup.derive and link to it ↵Miss Islington (bot)2024-06-052-2/+5
| | | | | | | | from contextlib.suppress (GH-119657) (#120105) gh-119287: clarify doc on BaseExceptionGroup.derive and link to it from contextlib.suppress (GH-119657) (cherry picked from commit 5c02ea8bae2287a828840f5734966da23dc573dc) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-119819: Update logging configuration to support joinable ↵Miss Islington (bot)2024-06-052-3/+9
| | | | | multiproc… (GH-120090) (GH-120093) (cherry picked from commit 983efcf15b2503fe0c05d5e03762385967962b33)
* [3.13] gh-120078: Fix struct_time attr typo tm_day -> tm_mday in ↵Miss Islington (bot)2024-06-051-1/+1
| | | | | | | Doc/library/time.rst (GH-120085) (cherry picked from commit b6b0dcbfc054f581b6f78602e4c2e9474e3efe21) Co-authored-by: shurj0 <60540027+shurj0@users.noreply.github.com>
* [3.13] gh-114616: Improve docs regarding changes to caches representation in ↵Miss Islington (bot)2024-06-042-3/+11
| | | | | | | | dis (GH-120033) (#120079) gh-114616: Improve docs regarding changes to caches representation in dis (GH-120033) (cherry picked from commit 770f3c1eadd3392c72fd55be47770234dd143a14) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.13] gh-119553: Fix console when pressing Ctrl-C within a multiline block ↵Miss Islington (bot)2024-06-042-1/+3
| | | | | | | (GH-120075) (#120076) (cherry picked from commit 69b3e8ea569faabccd74036e3d0e5ec7c0c62a20) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.13] gh-120048: Make `test_imaplib` faster (GH-120050) (#120069)Miss Islington (bot)2024-06-041-14/+8
| | | | | | | | | | | | | | The `test_imaplib` was taking 40+ minutes in the refleak build bots because the tests waiting on a client `self._setup()` was creating a client that prevented progress until its connection timed out, which scaled with the global timeout. We should set `connect=False` for the tests that don't want `_setup()` to create a client. (cherry picked from commit 710cbea6604d27c7d59ae4953bf522b997a82cc7) Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-119999: Fix potential race condition in ↵Miss Islington (bot)2024-06-041-8/+11
| | | | | | | | | | | `_Py_ExplicitMergeRefcount` (GH-120000) (#120073) We need to write to `ob_ref_local` and `ob_tid` before `ob_ref_shared`. Once we mark `ob_ref_shared` as merged, some other thread may free the object because the caller also passes in `-1` as `extra` to give up its only reference. (cherry picked from commit 4055577221f5f52af329e87f31d81bb8fb02c504) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-119819: Update test to skip if _multiprocessing is unavailable. ↵Miss Islington (bot)2024-06-041-1/+1
| | | | | (GH-120067) (GH-120072) (cherry picked from commit 109e1082ea92f89d42cd70f2cc7ca6fba6be9bab)
* [3.13] gh-119842: Honor PyOS_InputHook in the new REPL (GH-119843) (GH-120066)Łukasz Langa2024-06-048-11/+144
| | | | | | | (cherry picked from commit d9095194dde27eaabfc0b86a11989cdb9a2acfe1) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* [3.13] gh-119553: Clear reader on Ctrl-C command (GH-119801) (#120062)Miss Islington (bot)2024-06-043-0/+19
| | | | | | (cherry picked from commit 010ea93b2b888149561becefeee90826bf8a2934) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-120039: Reduce expected timeout in test_siginterrupt_off ↵Miss Islington (bot)2024-06-041-3/+3
| | | | | | | | | | (GH-120047) (#120060) The process is expected to time out. In the refleak builds, `support.SHORT_TIMEOUT` is often five minutes and we run the tests six times, so test_signal was taking >30 minutes. (cherry picked from commit d419d468ff4aaf6bc673354d0ee41b273d09dd3f) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-120041: Do not use append_to_screen when completions are visible ↵Miss Islington (bot)2024-06-043-10/+52
| | | | | | | | | | | | (GH-120042) (#120051) * gh-120041: Do not use append_to_screen when completions are visible (GH-120042) (cherry picked from commit 8fc7653766b106bdbc4ff6154e0020aea4ab15e6) * gh-120041: Refactor check for visible completion menu in completing_reader (GH-120055) (cherry picked from commit bf8e5e53d0c359a1f9c285d855e7a5e9b6d91375) --------- Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.13] gh-89928: Fix integer conversion of device numbers (GH-31794) (GH-120053)Miss Islington (bot)2024-06-044-39/+99
| | | | | | | | Fix os.major(), os.minor() and os.makedev(). Support device numbers larger than 2**63-1. Support non-existent device number (NODEV). (cherry picked from commit 7111d9605f9db7aa0b095bb8ece7ccc0b8115c3f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] Fix incorrect pull GitHub link in What's New (GH-120045) (#120052)Miss Islington (bot)2024-06-041-1/+1
| | | | | Co-authored-by: Trey Hunner <trey@treyhunner.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.13] gh-119588: Update docs to reflect decision to include the change with ↵Miss Islington (bot)2024-06-041-2/+2
| | | | | | | | Python 3.13 and not 3.12. (GH-120043) (#120046) gh-119588: Update docs to reflect decision to include the change with Python 3.13 and not 3.12. (GH-120043) (cherry picked from commit 4dcd91ceafce91ec37bb1a9d544e41fc65578994) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.13] gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). ↵Miss Islington (bot)2024-06-044-12/+32
| | | | | | | | (GH-119591) (#119985) gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (GH-119591) (cherry picked from commit 42a34ddb0b63e638905b01e17a7254623a0de427) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.13] gh-106531: Apply changes from importlib_resources 6.3.2 (GH-117054) ↵Miss Islington (bot)2024-06-0416-146/+231
| | | | | | | | | | (#120014) gh-106531: Apply changes from importlib_resources 6.3.2 (GH-117054) Apply changes from importlib_resources 6.3.2. (cherry picked from commit 8d63c8d47b9edd8ac2f0b395b2fa0ae5f571252d) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.13] gh-117657: Fix race involving GC and heap initialization (GH-119923) ↵Miss Islington (bot)2024-06-044-3/+7
| | | | | | | | | | | | | | | | | (#120038) The `_PyThreadState_Bind()` function is called before the first `PyEval_AcquireThread()` so it's not synchronized with the stop the world GC. We had a race where `gc_visit_heaps()` might visit a thread's heap while it's being initialized. Use a simple atomic int to avoid visiting heaps for threads that are not yet fully initialized (i.e., before `tstate_mimalloc_bind()` is called). The race was reproducible by running: `python Lib/test/test_importlib/partial/pool_in_threads.py`. (cherry picked from commit e69d068ad0bd6a25434ea476a647b635da4d82bb) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-119819: Fix regression to allow logging configuration with ↵Miss Islington (bot)2024-06-043-1/+31
| | | | | multipr… (GH-120030) (GH-120035) (cherry picked from commit 99d945c0c006e3246ac00338e37c443c6e08fc5c)
* [3.13] gh-118868: logging QueueHandler fix passing of kwargs (GH-118869) ↵Miss Islington (bot)2024-06-043-8/+39
| | | | | (GH-120032) (cherry picked from commit dce14bb2dce7887df40ae5c13b0d13e0dafceff7)
* [3.13] gh-119070: Update test_shebang_executable_extension to always use ↵Miss Islington (bot)2024-06-041-3/+3
| | | | | | | | non-installed version (GH-119846) (#GH-120015) gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846) (cherry picked from commit 5c48eb0cc6c3e84aafda0a734a05ecec14fc0ccf) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.13] gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021) (#120022)Miss Islington (bot)2024-06-041-6/+6
| | | | | | | | | gh-111499: Fix PYTHONMALLOCSTATS at Python exit (GH-120021) Call _PyObject_DebugMallocStats() earlier in Py_FinalizeEx(), before the interpreter is deleted. (cherry picked from commit 5a1205b641df133932ed4c65b9a4ff5724e89963) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214) (#119334)Miss Islington (bot)2024-06-047-7/+16
| | | | | | gh-111389: Add PyHASH_MULTIPLIER constant (GH-119214) (cherry picked from commit f6da790122fdae1a28f444edfbb55202d6829cd1) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-119724: Revert "bpo-45759: Better error messages for non-matching ↵T. Wouters2024-06-044-611/+454
| | | | | | | | 'elif'/'else' statements (GH-29513)" (GH-119974) (GH-120013) This reverts commit 1c8f912ebdfdb146cd7dd2d7a3a67d2c5045ddb0. (cherry picked from commit 31a4fb3c74a0284436343858803b54471e2dc9c7)
* [3.13] gh-117398: Use Per-Interpreter State for the _datetime Static Types ↵Miss Islington (bot)2024-06-0313-166/+381
| | | | | | | | | | | (gh-120009) We make use of the same mechanism that we use for the static builtin types. This required a few tweaks. This change is the final piece needed to make _datetime support multiple interpreters. I've updated the module slot accordingly. (cherry picked from commit 105f22ea46ac16866e6df18ebae2a8ba422b7f45, AKA gh-119929) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-117142: Support Importing ctypes in Isolated Interpreters (gh-120008)Miss Islington (bot)2024-06-032-1/+3
| | | | | | | | This makes the support official. (cherry picked from commit dba7a167dbbd50e83e58df351f3414b7a08e0188, AKA gh-119991) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>