summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* gh-127196: Fix crash in `_interpreters`, when `shared` had invalid encodings ↵sobolevn2025-01-091-1/+12
| | | | (#127220)
* gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecation (#128663)sobolevn2025-01-092-1/+47
| | | gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecataion
* gh-128673: Increase coverage of `typing.get_type_hints` (#128674)sobolevn2025-01-091-0/+19
|
* gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630)Petr Viktorin2025-01-092-0/+45
|
* Remove unnecessary LIST_TO_TUPLE conversions (GH-126558)Brandt Bucher2025-01-081-0/+51
|
* gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` (#128616)sobolevn2025-01-081-0/+12
|
* gh-128613: Increase `typing.Concatenate` coverage (#128614)sobolevn2025-01-081-0/+12
|
* gh-128617: Fix `test_typing.test_readonly_inheritance` (#128618)sobolevn2025-01-081-4/+4
|
* gh-41872: Fix quick extraction of module docstrings from a file in pydoc ↵Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2025-01-082-15/+101
| | | | | | | | | (GH-127520) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* GH-127809: Fix the JIT's understanding of ** (GH-127844)Brandt Bucher2025-01-081-0/+44
|
* gh-127350: Add more tests for Py_fopen() (GH-128587)Serhiy Storchaka2025-01-071-4/+21
|
* gh-115999: Add free-threaded specialization for COMPARE_OP (#126410)T. Wouters2025-01-071-0/+33
| | | | | Add free-threaded specialization for COMPARE_OP, and tests for COMPARE_OP specialization in general. Co-authored-by: Donghee Na <donghee.na92@gmail.com>
* gh-128552: fix refcycles in eager task creation (#128553)Thomas Grainger2025-01-073-6/+70
|
* gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284)Stephen Morton2025-01-072-5/+95
| | | | | | | | * Allow DOMParser.parse() to correctly handle DOMInputSource instances that only have a systemId attribute set. * Fix DOMEntityResolver.resolveEntity(), which was broken by the Python 3.0 transition. * Add Lib/test/test_xml_dom_xmlbuilder.py with few tests.
* gh-128559: Remove typing import from asyncio.timeouts (#128560)Michael H2025-01-061-13/+11
|
* gh-127146: Skip Emscripten tests with pending fixes (#128549)Hood Chatham2025-01-066-1/+8
| | | | Marks some additional tests as skipped on Emscripten. Many of these skips can be reverted when the next Emscripten release is available.
* GH-128533: Add `NOT_TAKEN` instruction after bytecode optimization. (GH-128554)Mark Shannon2025-01-062-126/+123
|
* gh-127146: Fix test_sysconfigdata_json for Emscripten (#128556)Hood Chatham2025-01-061-4/+4
|
* GH-128375: Better instrument for `FOR_ITER` (GH-128445)Mark Shannon2025-01-065-295/+414
|
* GH-128073: Include `EXIT_IF` when checking for escaping calls (GH-128537)Mark Shannon2025-01-061-0/+25
|
* gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)Victor Stinner2025-01-062-2/+68
|
* gh-128340: add thread safe handle for `loop.call_soon_threadsafe` (#128369)Kumar Aditya2025-01-063-1/+150
| | | Adds `_ThreadSafeHandle` to be used for callbacks scheduled with `loop.call_soon_threadsafe`.
* gh-128519: Align the docstring of untokenize() to match the docs (#128521)Tomas R.2025-01-061-10/+4
|
* gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has ↵RanKKI2025-01-063-2/+55
| | | | | | | | | | | extra text (#127547) Up to this point message handling has been very strict with regards to content encoding values: mixed case was accepted, but trailing blanks or other text would cause decoding failure, even if the first token was a valid encoding. By Postel's Rule we should go ahead and decode as long as we can recognize that first token. We have not thought of any security or backward compatibility concerns with this fix. This fix does introduce a new technique/pattern to the Message code: we look to see if the header has a 'cte' attribute, and if so we use that. This effectively promotes the header API exposed by HeaderRegistry to an API that any header parser "should" support. This seems like a reasonable thing to do. It is not, however, a requirement, as the string value of the header is still used if there is no cte attribute. The full fix (ignore any trailing blanks or blank-separated trailing text) applies only to the non-compat32 API. compat32 is only fixed to the extent that it now ignores trailing spaces. Note that the HeaderRegistry parsing still records a HeaderDefect if there is extra text. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-127553: Remove outdated TODO comment in _pydatetime (#127564)Beomsoo Kim2025-01-041-1/+0
|
* pathlib tests: create `walk()` test hierarchy without using class under test ↵Barney Gale2025-01-042-39/+58
| | | | | | | | (#128338) In the tests for `pathlib.Path.walk()`, avoid using the path class under test (`self.cls`) in test setup. Instead we use `os` functions in `test_pathlib`, and direct manipulation of `DummyPath` internal data in `test_pathlib_abc`.
* GH-127381: pathlib ABCs: remove `PathBase.move()` and `move_into()` (#128337)Barney Gale2025-01-044-153/+148
| | | | | These methods combine `_delete()` and `copy()`, but `_delete()` isn't part of the public interface, and it's unlikely to be added until the pathlib ABCs are made official, or perhaps even later.
* gh-128152: Argument Clinic: ignore pre-processor directives inside C ↵Erlend E. Aasland2025-01-041-0/+10
| | | | comments (#128464)
* gh-128002: fix many thread safety issues in asyncio (#128147)Kumar Aditya2025-01-041-0/+82
| | | | | | * Makes `_asyncio.Task` and `_asyncio.Future` thread-safe by adding critical sections * Add assertions to check for thread safety checking locking of object by critical sections in internal functions * Make `_asyncio.all_tasks` thread safe when eager tasks are used * Add a thread safety test
* gh-128400: Only show the current thread in `faulthandler` if the GIL is ↵Peter Bierma2025-01-031-2/+9
| | | | disabled (GH-128425)
* gh-127903: Fix a crash on debug builds when calling ↵Alexander Shadchin2025-01-031-0/+7
| | | | `Objects/unicodeobject::_copy_characters`` (#127876)
* gh-89083: improve UUIDv8 uniqueness tests (GH-128149)Bénédikt Tran2025-01-031-6/+10
| | | improve UUIDv8 uniqueness tests
* gh-112015: Implement `ctypes.memoryview_at()` (GH-112018)Rian Hunter2025-01-032-1/+68
| | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-128317: Highlight today in colour in calendar CLI output (#128318)Hugo van Kemenade2025-01-032-9/+43
| | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-128404: Remove `asyncio` from `Lib/test/test_sys_settrace` (#128435)Thomas Grainger2025-01-031-6/+2
|
* gh-127529: Correct asyncio's `accept_connection` behaviour for handling ↵jb21702025-01-032-3/+32
| | | | | `ConnectionAbortedError` (#127532) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-128404: remove asyncio from test_type_params (#128436)Thomas Grainger2025-01-031-5/+2
|
* gh-128400: Stop-the-world when manually calling `faulthandler` (GH-128422)Peter Bierma2025-01-021-1/+29
|
* gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() ↵Zhikang Yan2025-01-022-2/+28
| | | | | (GH-128015) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-128404: Remove ``asyncio`` from ``test_builtin`` (#128403)Thomas Grainger2025-01-021-59/+64
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-124130: Fix a bug in matching regular expression \B in empty string ↵Serhiy Storchaka2025-01-021-8/+5
| | | | (GH-127007)
* gh-95371: Add support for other image formats(e.g. PNG) to the turtle… ↵Shin-myoung-serp2025-01-021-16/+14
| | | | | | | | (#95378) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* Fix while statements with non-bool conditions in `_pyrepl` (#127509)RUANG (James Roy)2025-01-012-2/+2
| | | Fix non-bool value conditions
* gh-128277: remove unnecessary critical section from `socket.close` (#128305)Kumar Aditya2025-01-011-0/+20
| | | Remove unnecessary critical section from `socket.close` as it now uses relaxed atomics for `sock_fd`.
* gh-121676: Raise a ``DeprecationWarning`` if the Python implementation of ↵Kirill Podoprigora2025-01-012-5/+34
| | | | | | | | | | | | | | | | | | ``functools.reduce`` is called with `function` or `sequence` as a keyword args (#121677) Python implementation of `functools` allows calling `reduce` with `function` or `sequence` as keyword args. This doesn't match behavior of our C accelerator and our documentation for `functools.reduce` states that `function`and `sequence` are positional-only arguments. Now calling a Python implementation of `functools.reduce` with `function` or `sequence` as keyword args would raise a `DeprecationWarning` and is planned to be prohibited in Python 3.16. Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-88834: Unify the instance check for typing.Union and types.UnionType ↵Serhiy Storchaka2024-12-312-3/+78
| | | | | | (GH-128363) Union now uses the instance checks against its parameters instead of the subclass checks.
* gh-128342: Specify timeout unit in subprocess docstrings (GH-128343)n-l-i2024-12-301-3/+3
| | | | | Specify timeout unit (seconds) in subprocess docstrings Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-128118: Speed up copy.copy with fast lookup for atomic and container ↵Pieter Eendebak2024-12-301-18/+9
| | | | types (#128119)
* gh-119180: Set the name of the param to __annotate__ to "format" (#124730)Jelle Zijlstra2024-12-302-2/+51
|
* GH-127381: pathlib ABCs: remove uncommon `PurePathBase` methods (#127853)Barney Gale2024-12-295-433/+365
| | | | | | | | Remove `PurePathBase.relative_to()` and `is_relative_to()` because they don't account for *other* being an entirely different kind of path, and they can't use `__eq__()` because it's not on the `PurePathBase` interface. Remove `PurePathBase.drive`, `root`, `is_absolute()` and `as_posix()`. These are all too specific to local filesystems.