summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.13.3v3.13.3Thomas Wouters2025-04-08108-240/+1119
|
* [3.13] gh-117779: Fix reading duplicated entries in zipfile by name ↵Miss Islington (bot)2025-04-083-6/+121
| | | | | | | (GH-129254) (GH-132263) (cherry picked from commit 0f04f2456a2ff996cc670342a287928ab5f9b706) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-131998: Fix `NULL` dereference when using an unbound method ↵Peter Bierma2025-04-085-0/+41
| | | | | | | | | | | descriptor in a specialized code path (GH-132000) (#132262) (cherry picked from commit ac3c439cdfee8452f2bcceacd67a1f4e423ac3cf) Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Mark Shannon <mark@hotpy.org>
* [3.13] gh-71339: Use new assertion methods in test_import and test_importlib ↵Serhiy Storchaka2025-04-0819-64/+68
| | | | | | | | (GH-129052) (#129123) (cherry picked from commit f7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119285)Miss Islington (bot)2025-04-081-3/+9
| | | | | (cherry picked from commit 172690227e771c2e8ab137815073e3a172c08dec) Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com>
* [3.13] gh-130164: Fix inspect.Signature.bind() handling of positional-only ↵Miss Islington (bot)2025-04-083-2/+12
| | | | | | | | args without defaults (GH-130192) (GH-130271) Follow-up to 9c15202. (cherry picked from commit dab456dcefd886bde44eb204dc6f1b2f14de0e9d) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [3.13] gh-132021: Add bool type to the list of allowed JSON key types ↵Miss Islington (bot)2025-04-082-4/+4
| | | | | | | | | (GH-132048) (#132255) gh-132021: Add bool type to the list of allowed JSON key types (GH-132048) (cherry picked from commit 403886c28ddb350bbcaea478f8d754ed14e10337) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* [3.13] gh-130775: Allow negative locations in `ast` (GH-130795) (#132243)sobolevn2025-04-083-4/+23
| | | | | (cherry picked from commit bc5233b6a5cdd8f77a4737ce317f94110869c082) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-132174: Fix function name in error message of ↵Miss Islington (bot)2025-04-082-1/+2
| | | | | | | | | `_interpreters.run_string` (GH-132175) (#132209) gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175) (cherry picked from commit f2daa96c81a45b26bdcf3d5c3887cec02137974e) Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
* [3.13] gh-115684: Clarify datetime `replace` documentation (GH-116519) (#131676)Miss Islington (bot)2025-04-081-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gh-115684: Clarify datetime `replace` documentation (GH-116519) * Clarify datetime `replace` documentation In GH-115684, HopedForLuck noted that `datetime.date.replace()` documentation was confusing because it looked like it would be changing immutable objects. This documentation change specifies that the `replace()` methods in `datetime` return new objects. This uses similar wording to the documentation for `datetime.combine()`, which specifies that a new datetime is returned. This is also similar to wording for `string.replace()`, except `string.replace()` emphasizes that a "copy" is returned. Resolves GH-115684. * Include reviewer comments Thanks Privat33r-dev for the comments! --------- (cherry picked from commit d2d886215cf694d5f3e7f0cbd76507a96bac322b) Co-authored-by: David Lowry-Duda <david@lowryduda.com> Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
* [3.13] Add psfhosted Plausible instance to analytics (GH-132252) (#132253)Miss Islington (bot)2025-04-081-0/+1
| | | | | | Add psfhosted Plausible instance to analytics (GH-132252) (cherry picked from commit 40844164b1d1d0f072990ff94202c348771676d6) Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
* [3.13] GH-130673: Gracefully handle missing sections in JIT build (GH-131749)Miss Islington (bot)2025-04-083-1/+8
| | | | | (cherry picked from commit a26a301f8b09c1825b288fc8649f8174576361f4) Co-authored-by: Bojun Ren <bj.ren.coding@outlook.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132236)Miss Islington (bot)2025-04-076-18/+28
| | | | | | | | | | | | * gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (cherry picked from commit c0de6500249469e6fc5b458d6afb6bad1b6755cd) Co-authored-by: Gregory P. Smith <greg@krypto.org> * make regen-sbom --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.13] Docs HTML: Remove self-closing tags (GH-132220) (#132228)Hugo van Kemenade2025-04-074-22/+22
| | | | | (cherry picked from commit ce724571b35f4e79fff1c862fcd9afa4c26b605f) Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* [3.13] gh-130521: Add Open Graph meta tags to template pages (GH-130523) ↵Miss Islington (bot)2025-04-073-0/+37
| | | | | | | | | | (#132239) gh-130521: Add Open Graph meta tags to template pages (GH-130523) (cherry picked from commit f5639d87f59043d3075dbd3d9075f30e872dd91a) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* [3.13] GH-127953: Make line number lookup O(1) regardless of the size of the ↵Mark Shannon2025-04-075-156/+208
| | | | | code object (#129127) GH-127953: Make line number lookup O(1) regardless of the size of the code object (GH-128350)
* [3.13] gh-131988: Fix a multithreaded scaling regression (#131989)Sam Gross2025-04-072-2/+4
| | | | | | | | | | | | gh-131988: Fix a multithreaded scaling regression The 3.13 free threaded build immortalizes certain objects to avoid reference count contention. In gh-127114 the condition was unintentionally changed to happen when the first thread was created instead of the first non-main thread. The `interp->gc.immortalize` field is then cleared again during `_PyGC_Init()`. Change the condition so that we check if we should immortalize objects using deferred reference counting whenever a non-main thread is created.
* [3.13] gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` ↵Miss Islington (bot)2025-04-071-4/+7
| | | | | | | | (GH-132222) (#132226) gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-132222) (cherry picked from commit 8b62374b344f5da852bed9f16619736d4d43936b) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) (GH-132217)Miss Islington (bot)2025-04-074-3/+10
| | | | | | (cherry picked from commit ad6a032cebf59d1668caa7e726aa5da72e1cbb5c) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
* [3.13] gh-132171: Fix `_interpreters.run_string` crash on string subclass ↵Miss Islington (bot)2025-04-073-1/+8
| | | | | | | | (GH-132173) (#132219) gh-132171: Fix `_interpreters.run_string` crash on string subclass (GH-132173) (cherry picked from commit 398071871066548954f4c51e8250d13b7c9659e0) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] gh-122040: reword `Modules/xxmodule.c` module-level comment ↵Miss Islington (bot)2025-04-071-2/+1
| | | | | | | | (GH-132201) (#132207) gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201) (cherry picked from commit af8d1b95377917036aaedf18b9cc047d8877259c) Co-authored-by: Sonny Ding <93831983+sonnyding1@users.noreply.github.com>
* [3.13] gh-131912: Improve description of grouping options in the format ↵Prometheus33752025-04-071-33/+55
| | | | | specification docs (GH-132030) (#132123) (cherry picked from commit 06a110f5227ba9d52f6205fde55924a14cab36ff)
* [3.13] gh-129204: Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob ↵Miss Islington (bot)2025-04-072-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | (GH-132184) (#132191) gh-129204: Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob (GH-132184) * Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob Add support for disabling the use of `posix_spawn` via a variable in the process environment. While it was previously possible to toggle this by modifying the value of `subprocess._USE_POSIX_SPAWN`, this required either patching CPython or modifying it within the interpreter instance which is not always possible, such as when running applications or scripts not under a user's control. * fixup NEWS entry --------- (cherry picked from commit 4c5dcc6d8292d5142aff8401cb9b9d18b49c6c89) Signed-off-by: Vincent Fazio <vfazio@gmail.com> Co-authored-by: Vincent Fazio <vfazio@gmail.com>
* [3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (GH-132190)Miss Islington (bot)2025-04-072-3/+4
| | | | (cherry picked from commit c55c0201fc09336f193cfc9992dc5e506fd7172d) Co-authored-by: Ned Deily <nad@python.org>
* [3.13] gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)Miss Islington (bot)2025-04-072-3/+4
| | | | | Patch by Bénédikt Tran. (cherry picked from commit ce49022b07928d58d1aecfbcd8ea1bf1055065ed) Co-authored-by: Ned Deily <nad@python.org>
* [3.13] gh-91132: Update macOS installer to use ncurses 6.5. (GH-129990)Miss Islington (bot)2025-04-072-18/+19
| | | | | (cherry picked from commit 0dbe543d70d7f014d4c1e0308f04c1d91bd815ca) Co-authored-by: Ned Deily <nad@python.org>
* [3.13] Docs: Add a single table summary for ``cmath`` (GH-131887) (#132179)Miss Islington (bot)2025-04-061-0/+51
| | | | | | | | | | Docs: Add a single table summary for ``cmath`` (GH-131887) (cherry picked from commit 6eaa4aeef25f77a31768d8ba5a03f614766aba95) Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* [3.13] gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization ↵sobolevn2025-04-064-2/+25
| | | | | | | | | | (GH-132018) (#132161) * [3.13] gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (GH-132018) (cherry picked from commit c0661df42ad20e488dbfa3e0fec22462833fc3d6) Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.13] gh-132159: Do not shadow user arguments in generated `__new__` by ↵Miss Islington (bot)2025-04-063-1/+21
| | | | | | | | `@warnings.deprecated` (GH-132160) (#132163) gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings.deprecated` (GH-132160) (cherry picked from commit 7bb1e1a23634bae81bf76fdb34e9f9f7e59b3793) Co-authored-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
* [3.13] gh-132038: Make perf version check in test_perf_profiler more robust ↵Miss Islington (bot)2025-04-061-2/+3
| | | | | | | | | | (GH-132039) (#132058) gh-132038: Make perf version check in test_perf_profiler more robust (GH-132039) Should work also if the version string includes a commit hash, like `perf version 6.12.9.g242e6068fd5c` (cherry picked from commit b6c92ec419cfa1e4483b072996bab403c9970a5d) Co-authored-by: Itamar Oren <itamarost@gmail.com>
* [3.13] Docs: Replace dead hyperlink for CGI environment variables ↵Miss Islington (bot)2025-04-061-1/+1
| | | | | | | | (GH-132137) (#132150) Docs: Replace dead hyperlink for CGI environment variables (GH-132137) (cherry picked from commit 0a10b45dd16a8c971363d917b9ebd1266e65f710) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
* [3.13] gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` ↵Miss Islington (bot)2025-04-061-0/+1
| | | | | | | | | (GH-132135) (#132144) gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135) (cherry picked from commit 86804003ed70acbf8a2531c6784895d750c50456) Signed-off-by: Manjusaka <me@manjusaka.me> Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
* [3.13] Fix numbered list syntax in programming.rst (GH-130158) (#132140)Miss Islington (bot)2025-04-051-5/+5
| | | | | | Fix numbered list syntax in programming.rst (GH-130158) (cherry picked from commit 376631829aab72e320e19102fc55cbca5af8c733) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* [3.13] Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails ↵Miss Islington (bot)2025-04-051-1/+6
| | | | | | | (GH-132072) (GH-132125) (cherry picked from commit ef70f029255b10faf659a54f79f9de4c003ec331) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] Add tests for Bluetooth RFCOMM, HCI and SCO (GH-132023) (GH-132071)Serhiy Storchaka2025-04-051-0/+124
| | | (cherry picked from commit 2ccd6aae4dff09a672a68303032f0056b43622dd)
* [3.13] gh-131015: Add test for bytes formatting errors (#131881) (#132115)Bénédikt Tran2025-04-051-0/+32
| | | | | | * gh-131015: Add test for bytes formatting errors (#131881) Co-authored-by: Ageev Maxim <maksim170901@gmail.com> (cherry picked from commit 05557788f3c284ede73e6f94810ec796bb9d3721)
* [3.13] Docs: document `plistlib.InvalidFileException` (GH-132069) (#132116)Miss Islington (bot)2025-04-051-2/+10
| | | | | | Docs: document `plistlib.InvalidFileException` (GH-132069) (cherry picked from commit 99e9798d612222785db427eb295c847147fe5e78) Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
* [3.13] gh-130115: fix thread identifiers for 32-bit musl (GH-130391) (GH-132089)Miss Islington (bot)2025-04-042-9/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CPython's pthread-based thread identifier relies on pthread_t being able to be represented as an unsigned integer type. This is true in most Linux libc implementations where it's defined as an unsigned long, however musl typedefs it as a struct *. If the pointer has the high bit set and is cast to PyThread_ident_t, the resultant value can be sign-extended [0]. This can cause issues when comparing against threading._MainThread's identifier. The main thread's identifier value is retrieved via _get_main_thread_ident which is backed by an unsigned long which truncates sign extended bits. >>> hex(threading.main_thread().ident) '0xb6f33f3c' >>> hex(threading.current_thread().ident) '0xffffffffb6f33f3c' Work around this by conditionally compiling in some code for non-glibc based Linux platforms that are at risk of sign-extension to return a PyLong based on the main thread's unsigned long thread identifier if the current thread is the main thread. [0]: https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Arrays-and-pointers-implementation.html --------- (cherry picked from commit 72123063ddee84bb2c9d591a23f420997e35af5a) Signed-off-by: Vincent Fazio <vfazio@gmail.com> Co-authored-by: Vincent Fazio <vfazio@gmail.com>
* [3.13] Fix typo in `template_replace()` test helper docstring (GH-132094) ↵Miss Islington (bot)2025-04-041-1/+1
| | | | | | | | (#132095) Fix typo in `template_replace()` test helper docstring (GH-132094) (cherry picked from commit ac3a7bfeccb752a59d88861e45b454db360aa69d) Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
* [3.13] gh-128632: fix segfault on nested __classdict__ type param ↵Tomasz Pytel2025-04-044-13/+53
| | | | | | | (GH-128744) (#132085) (cherry picked from commit 891c61c1fa480928dd60cce8bbc8764630c95025) Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
* [3.13] gh-130655: Add a test for corrupt `.mo` files in `gettext` ↵Miss Islington (bot)2025-04-041-0/+39
| | | | | | | | (GH-131911) (#132079) gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911) (cherry picked from commit a126cefc176a7ddbd1a09ce560195f6fd81a5c92) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.13] gh-130655: Add a test for bad magic numbers in `.mo` files parsed by ↵Miss Islington (bot)2025-04-041-0/+16
| | | | | | | | `gettext` (GH-131909) (#132077) gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext` (GH-131909) (cherry picked from commit 16a6270aa61c86c430a308c0f766a69a88c9a3a5) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.13] gh-130655: Add tests for `gettext.find()` (GH-130691) (#132084)Miss Islington (bot)2025-04-041-0/+70
| | | | | | | | gh-130655: Add tests for `gettext.find()` (GH-130691) (cherry picked from commit 3118693a1a3db0da96c565a2de015a806c892625) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
* [3.13] gh-132075: Fix possible use of sockaddr structures with uninitialized ↵Miss Islington (bot)2025-04-042-0/+15
| | | | | | | | members (GH-132076) (GH-132086) Now all structure members are initialized with zeroes by default. (cherry picked from commit 345baa77ba2ce3b8ea8f2fad84754e5cc0b10938) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-131423: Update OpenSSL build tag to 3.0.16.2 to fix ARM64 crash (GH-132051)Miss Islington (bot)2025-04-032-2/+2
| | | | | (cherry picked from commit 24decb05ddda445d96f45e2cd0b39497318c98d4) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.13] gh-130197: pygettext: Test the --escape option (GH-131902) (GH-132032)Tomas R.2025-04-025-15/+143
| | | (cherry picked from commit 87d9983994e9a423e9e0050b1bbee52ebaf84367)
* [3.13] gh-131544: Update docs for PyType_AddWatcher (gh-132015) (gh-132019)Miss Islington (bot)2025-04-021-0/+3
| | | | | | gh-131544: Update docs for PyType_AddWatcher (gh-132015) (cherry picked from commit 25275bda790e8a689092e83855d6d0574f26061b) Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.13] gh-131888: fix ResourceWarning in test_ftplib (GH-131889) (#132009)Miss Islington (bot)2025-04-021-5/+8
| | | | | | gh-131888: fix ResourceWarning in test_ftplib (GH-131889) (cherry picked from commit b0f77c4d250789fd1deaab4912919e2e6b89e583) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.13] gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype ↵Miss Islington (bot)2025-04-023-7/+17
| | | | | | | | (GH-132003) (#132007) gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003) (cherry picked from commit ab2a3dda1d3b6668162a847bf5b6aca2855a3416) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.13] Backport miscellaneous Android testbed changes (#131985)Malcolm Smith2025-04-023-6/+21
| | | | Backport miscellaneous Android testbed changes from #125946, but without the Android API version bump.