summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.14.0a4v3.14.0a4Hugo van Kemenade2025-01-1496-230/+880
|
* gh-118761: Improve import time of the `pickle` module. (#128732)Bénédikt Tran2025-01-142-2/+4
| | | | | | | | | | Importing `pickle` is now roughly 25% faster. Importing the `re` module is no longer needed and thus `re` is no more implicitly exposed as `pickle.re`. --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-109959: Skip test_glob.test_selflink() flaky test (#128812)Victor Stinner2025-01-141-0/+4
|
* gh-127787: Move _PyUnicodeError_GetParams() to the internal C API (#128803)Victor Stinner2025-01-142-6/+9
|
* Update cryptographic primitives code owners. (#128747)Bénédikt Tran2025-01-141-5/+6
|
* gh-123299: Copyedit "What's New in Python 3.14" (#128814)Hugo van Kemenade2025-01-142-13/+18
|
* Skip CI expensive checks on `CODEOWNERS` update (#128754)Bénédikt Tran2025-01-141-1/+16
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-71339: Add additional assertion methods for unittest (GH-128707)Serhiy Storchaka2025-01-1420-100/+555
| | | | | | | | | | | | Add the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() Also improve error messages for assertIsInstance() and assertNotIsInstance().
* gh-106320: Document private C APIs promoted to public C API (#128788)Victor Stinner2025-01-141-0/+24
|
* gh-125997: Increase test coverage for `time.sleep()` (#128751)Bénédikt Tran2025-01-131-2/+11
| | | | | | | | | - Add tests for durations of invalid types. - Add tests for `int` and `float` durations, including signed zeroes durations. - Add tests for nonzero very small durations and durations close to the clock resolution. --------- Co-authored-by: Victor Stinner <vstinner@python.org>
* Explicitly import `urllib.error` in `urllib.robotparser` (#128737)Bénédikt Tran2025-01-131-0/+1
|
* gh-128562: Fix generation of the tkinter widget names (GH-128604)Zhikang Yan2025-01-133-1/+12
| | | | There were possible conflicts if the widget class name ends with a digit.
* gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` ↵Bénédikt Tran2025-01-132-23/+11
| | | | | (#128287) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-128002: add more thread safety tests for asyncio (#128480)Kumar Aditya2025-01-131-0/+54
|
* gh-128421: make getters and setters of `BaseException` thread safe (#128728)Kumar Aditya2025-01-132-89/+520
|
* gh-128400: Only show the current thread in `Py_FatalError` on the ↵Peter Bierma2025-01-134-12/+22
| | | | free-threaded build (#128758)
* gh-111178: fix UBSan failures in `Objects/codeobject.c` (GH-128240)Bénédikt Tran2025-01-131-18/+22
|
* gh-128182: Add per-object memory access synchronization to `ctypes` (GH-128490)Peter Bierma2025-01-135-47/+234
|
* gh-67748: DOC:Add summary table for str methods in stdtypes.rst (GH-1709)Cheryl Sabella2025-01-131-0/+94
| | | | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-127773: Disable attribute cache on incompatible MRO entries (GH-127924)Petr Viktorin2025-01-134-2/+50
|
* gh-128078: Clear exception in `anext` before calling ↵Bénédikt Tran2025-01-134-0/+22
| | | | | `_PyGen_SetStopIterationValue` (#128780) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* GH-128682: Stronger checking of `PyStackRef_CLOSE` and `DEAD`. (GH-128683)Mark Shannon2025-01-137-123/+220
|
* gh-128150: Improve performances of `uuid.uuid*` constructor functions. (#128151)Bénédikt Tran2025-01-133-27/+76
| | | | | We introduce a private constructor `UUID._from_int()` for RFC 4122/9562 UUIDs, which takes the integral UUID value as input. The latter must have correctly set its variant and version bits. We also make `UUID.__init__()` slightly more efficient.
* GH-124483: Mark `Py_DECREF`, etc. as escaping for the JIT (GH-128678)Mark Shannon2025-01-135-58/+90
|
* gh-128595: Add test class helper to force no terminal colour (#128687)Hugo van Kemenade2025-01-135-22/+49
| | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-128685: Specialize (rather than quicken) LOAD_CONST into ↵Mark Shannon2025-01-1314-65/+121
| | | | LOAD_CONST_[IM]MORTAL (GH-128708)
* gh-123345: improve `fnmatch` docs (#123346)Bénédikt Tran2025-01-131-6/+12
|
* gh-128690: temporarily do not use test_embed in PGO profile builds (#128771)Ned Deily2025-01-132-1/+2
| | | Temporarily do not use test_embed in PGO profile builds until the problem with test_init_pyvenv_cfg failing in some configurations is resolved.
* gh-90905: Allow cross-compilation on macOS (#128385)Zanie Blue2025-01-133-0/+25
|
* gh-128759: fix data race in `type_modified_unlocked` (#128764)sobolevn2025-01-131-1/+1
|
* gh-128627: Emscripten: Use wasm-gc based call adaptor if available (#128628)Hood Chatham2025-01-124-71/+187
| | | | | | Replaces the trampoline mechanism in Emscripten with an implementation that uses a recently added feature of wasm-gc instead of JS type reflection, when that feature is available.
* gh-128731: Fix ResourceWarning in robotparser.RobotFileParser.read() (GH-128733)Serhiy Storchaka2025-01-122-0/+2
|
* gh-128717: Stop-the-world when setting the recursion limit (#128741)Peter Bierma2025-01-123-0/+19
|
* gh-126703: Add freelist for `PyMethodObject` (#128594)Pieter Eendebak2025-01-124-3/+12
|
* gh-128734: Fix ResourceWarning in urllib tests (GH-128735)Serhiy Storchaka2025-01-125-20/+40
|
* gh-128729: Fix RuntimeWarning in test_unittest (GH-128730)Serhiy Storchaka2025-01-121-0/+3
|
* gh-128377: Skip `test_cmd_line.test_non_interactive_output_buffering` when ↵Yan Yanchii2025-01-121-0/+2
| | | | | | | `PYTHONUNBUFFERED=1` (#128378) The `test_cmd_line.test_non_interactive_output_buffering` test assumes a buffered `stdio` without checking the `PYTHONUNBUFFERED` value. Instead of changing the environment variable for the duration of the test, it is better to simply skip it.
* GH-128520: Divide pathlib ABCs into three classes (#128523)Barney Gale2025-01-115-307/+317
| | | | | | | | | | | | In the private pathlib ABCs, rename `PurePathBase` to `JoinablePath`, and split `PathBase` into `ReadablePath` and `WritablePath`. This improves the API fit for read-only virtual filesystems. The split of `PathBase` entails a similar split of `CopyWorker` (implements copying) and the test cases in `test_pathlib_abc`. In a later patch, we'll make `WritablePath` inherit directly from `JoinablePath` rather than `ReadablePath`. For a couple of reasons, this isn't quite possible yet.
* gh-128438: Add `EnvironmentVarGuard` for `test_pdb.py` (#128522)Yan Yanchii2025-01-111-15/+8
|
* Make the Python CLI error message style more consistent (GH-128129)9cel2025-01-112-3/+3
|
* gh-128696: Add arm64 to the get_platform return val description (#128701)RUANG (James Roy)2025-01-112-2/+4
|
* gh-128409: Document that pdb.post_mortem() accepts exceptions (#128410)Adam Johnson2025-01-101-5/+7
| | | Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* gh-127257: Add hex code to ssl "unknown error" message (GH-127360)Petr Viktorin2025-01-102-16/+51
| | | | | | | | | | | | * ssl: Add hex error code to "unknown error" messages To make it easier to vary the individual parts of the message, replace the if-ladder with constant format strings by building the string piece-wise with PyUnicodeWriter. Use "unknown error (0x%x)" rather than just "unknown error" if we can't get a better error message. (Hex makes sense as the error includes two packed parts.)
* gh-128388: pyrepl on Windows: add meta and ctrl+arrow keybindings (GH-128389)Paulie Peña2025-01-102-16/+27
| | | | | | | | | | | | Fix `Lib/_pyrepl/windows_console.py` to support more keybindings, like the `Ctrl`+`←` and `Ctrl`+`→` word-skipping keybindings and those with meta (i.e. Alt), e.g. to `kill-word` or `backward-kill-word`. Specifics: if Ctrl is pressed, emit "ctrl left" and "ctrl right" instead of just "left" or "right," and if Meta/Alt is pressed, emit the special key code for meta before emitting the other key that was pressed. Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
* gh-111178: fix UBSan failures for `gdbmobject` (GH-128178)Bénédikt Tran2025-01-101-13/+20
| | | | * fix UBSan failures for `gdbmobject` * suppress unused return values
* gh-111178: fix UBSan failures in `Python/bltinmodule.c` (GH-128235)Bénédikt Tran2025-01-101-30/+51
| | | | | * fix UBSan failures for `filterobject` * fix UBSan failures for `mapobject` * fix UBSan failures for `zipobject`
* gh-111178: fix UBSan failures in `Objects/bytearrayobject.c` (GH-128236)Bénédikt Tran2025-01-101-15/+24
| | | | * fix UBSan failures for `bytesiterobject` * fix UBSan failures for `PyByteArrayObject`
* gh-111178: fix UBSan failures in `Objects/bytesobject.c` (GH-128237)Bénédikt Tran2025-01-101-17/+21
| | | | * remove redundant casts for `bytesobject` * fix UBSan failures for `striterobject`
* gh-111178: fix UBSan failures in `Modules/_bz2module.c` (GH-128238)Bénédikt Tran2025-01-101-4/+10
|
* gh-111178: fix UBSan failures in `Objects/complexobject.c` (GH-128241)Bénédikt Tran2025-01-101-25/+29
| | | fix UBSan failures for `PyComplexObject`