Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-128150: Improve performances of `uuid.uuid*` constructor functions. (#128151) | Bénédikt Tran | 2025-01-13 | 3 | -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 Shannon | 2025-01-13 | 5 | -58/+90 |
| | |||||
* | gh-128595: Add test class helper to force no terminal colour (#128687) | Hugo van Kemenade | 2025-01-13 | 5 | -22/+49 |
| | | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | GH-128685: Specialize (rather than quicken) LOAD_CONST into ↵ | Mark Shannon | 2025-01-13 | 14 | -65/+121 |
| | | | | LOAD_CONST_[IM]MORTAL (GH-128708) | ||||
* | gh-123345: improve `fnmatch` docs (#123346) | Bénédikt Tran | 2025-01-13 | 1 | -6/+12 |
| | |||||
* | gh-128690: temporarily do not use test_embed in PGO profile builds (#128771) | Ned Deily | 2025-01-13 | 2 | -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 Blue | 2025-01-13 | 3 | -0/+25 |
| | |||||
* | gh-128759: fix data race in `type_modified_unlocked` (#128764) | sobolevn | 2025-01-13 | 1 | -1/+1 |
| | |||||
* | gh-128627: Emscripten: Use wasm-gc based call adaptor if available (#128628) | Hood Chatham | 2025-01-12 | 4 | -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 Storchaka | 2025-01-12 | 2 | -0/+2 |
| | |||||
* | gh-128717: Stop-the-world when setting the recursion limit (#128741) | Peter Bierma | 2025-01-12 | 3 | -0/+19 |
| | |||||
* | gh-126703: Add freelist for `PyMethodObject` (#128594) | Pieter Eendebak | 2025-01-12 | 4 | -3/+12 |
| | |||||
* | gh-128734: Fix ResourceWarning in urllib tests (GH-128735) | Serhiy Storchaka | 2025-01-12 | 5 | -20/+40 |
| | |||||
* | gh-128729: Fix RuntimeWarning in test_unittest (GH-128730) | Serhiy Storchaka | 2025-01-12 | 1 | -0/+3 |
| | |||||
* | gh-128377: Skip `test_cmd_line.test_non_interactive_output_buffering` when ↵ | Yan Yanchii | 2025-01-12 | 1 | -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 Gale | 2025-01-11 | 5 | -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 Yanchii | 2025-01-11 | 1 | -15/+8 |
| | |||||
* | Make the Python CLI error message style more consistent (GH-128129) | 9cel | 2025-01-11 | 2 | -3/+3 |
| | |||||
* | gh-128696: Add arm64 to the get_platform return val description (#128701) | RUANG (James Roy) | 2025-01-11 | 2 | -2/+4 |
| | |||||
* | gh-128409: Document that pdb.post_mortem() accepts exceptions (#128410) | Adam Johnson | 2025-01-10 | 1 | -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 Viktorin | 2025-01-10 | 2 | -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ña | 2025-01-10 | 2 | -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 Tran | 2025-01-10 | 1 | -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 Tran | 2025-01-10 | 1 | -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 Tran | 2025-01-10 | 1 | -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 Tran | 2025-01-10 | 1 | -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 Tran | 2025-01-10 | 1 | -4/+10 |
| | |||||
* | gh-111178: fix UBSan failures in `Objects/complexobject.c` (GH-128241) | Bénédikt Tran | 2025-01-10 | 1 | -25/+29 |
| | | | fix UBSan failures for `PyComplexObject` | ||||
* | gh-128694: Fix `(env changed)` error in `test_inspect` (#128702) | sobolevn | 2025-01-10 | 1 | -0/+5 |
| | |||||
* | gh-126862: Use `Py_ssize_t` instead of `int` when processing the number of ↵ | Bénédikt Tran | 2025-01-10 | 2 | -4/+6 |
| | | | | super-classes (#127523) | ||||
* | gh-128691: Use deferred reference counting on `_thread._local` (#128693) | Sam Gross | 2025-01-10 | 1 | -0/+4 |
| | | | | | This change, along with the LOAD_ATTR specializations, makes the "thread_local_read" micro benchmark in Tools/ftscalingbench/ftscalingbench.py scale well to multiple threads. | ||||
* | gh-127196: Fix crash in `_interpreters`, when `shared` had invalid encodings ↵ | sobolevn | 2025-01-09 | 3 | -2/+20 |
| | | | | (#127220) | ||||
* | gh-128650: Fix incorrect statement in partial documentation (gh-128651) | dgpb | 2025-01-09 | 1 | -2/+2 |
| | |||||
* | gh-128002: fix `asyncio.all_tasks` against concurrent deallocations of tasks ↵ | Kumar Aditya | 2025-01-09 | 2 | -6/+15 |
| | | | | (#128541) | ||||
* | gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecation (#128663) | sobolevn | 2025-01-09 | 3 | -1/+49 |
| | | | gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecataion | ||||
* | gh-128673: Increase coverage of `typing.get_type_hints` (#128674) | sobolevn | 2025-01-09 | 1 | -0/+19 |
| | |||||
* | gh-118915: Document `PyUnstable_InterpreterState_GetMainModule` (GH-128483) | Peter Bierma | 2025-01-09 | 1 | -0/+11 |
| | |||||
* | gh-124433: fix docs for `asyncio.Queue.task_done` (#128669) | Kumar Aditya | 2025-01-09 | 1 | -3/+3 |
| | |||||
* | gh-126137: improve docs for `loop.add_reader` and `loop.add_writer` (#128666) | Kumar Aditya | 2025-01-09 | 1 | -0/+6 |
| | |||||
* | gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630) | Petr Viktorin | 2025-01-09 | 18 | -33/+358 |
| | |||||
* | gh-79149: document reentrant safety of `loop.call_soon_threadsafe` (#128662) | Kumar Aditya | 2025-01-09 | 1 | -0/+3 |
| | | | Co-authored-by: Thomas Grainger <tagrain@gmail.com> | ||||
* | gh-97850: Remove the mention of removal from `ResourceReader` docs (#128602) | Tomas R. | 2025-01-08 | 1 | -1/+1 |
| | | | Remove the mention of removal from ResourceReader docs | ||||
* | acks: add myself (#128652) | Filipe Laíns 🇵🇸 | 2025-01-08 | 1 | -0/+1 |
| | |||||
* | GH-66409: check if exec_prefix is the same as prefix before searching ↵ | Filipe Laíns 🇵🇸 | 2025-01-08 | 2 | -0/+5 |
| | | | | executable_dir (#127974) | ||||
* | Remove unnecessary LIST_TO_TUPLE conversions (GH-126558) | Brandt Bucher | 2025-01-08 | 2 | -0/+58 |
| | |||||
* | gh-111178: fix UBSan failures in `Objects/capsule.c` (GH-128239) | Bénédikt Tran | 2025-01-08 | 1 | -11/+12 |
| | | | fix UBSan failures for `PyCapsule` | ||||
* | gh-111178: fix UBSan failures in `Python/context.c` (GH-128242) | Bénédikt Tran | 2025-01-08 | 1 | -53/+68 |
| | | | | | | * fix UBSan failures for `PyContext` * fix UBSan failures for `PyContextVar` * fix UBSan failures for `PyContextToken` * fix UBSan failures for `_PyContextTokenMissing` | ||||
* | gh-111178: fix UBSan failures in `Python/hamt.c` (GH-128247) | Bénédikt Tran | 2025-01-08 | 1 | -90/+84 |
| | | | | | | | * fix UBSan failures for `PyHamtObject` * fix UBSan failures for `PyHamtNode_Array` * fix UBSan failures for `PyHamtNode_Collision` * fix UBSan failures for `PyHamtNode_Bitmap` | ||||
* | gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` (#128616) | sobolevn | 2025-01-08 | 1 | -0/+12 |
| | |||||
* | GH-127970: find the runtime library when dladdr is available (#127972) | Filipe Laíns 🇵🇸 | 2025-01-08 | 5 | -24/+31 |
| |