summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-112015: Implement `ctypes.memoryview_at()` (GH-112018)Rian Hunter2025-01-036-1/+120
| | | | | 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-035-13/+85
| | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-127787: refactor helpers for `PyUnicodeErrorObject` internal interface ↵Bénédikt Tran2025-01-032-155/+293
| | | | | | | | | | | | | | | | | | | | | | (GH-127789) - Unify `get_unicode` and `get_string` in a single function. - Allow to retrieve the underlying `object` attribute, its size, and the adjusted 'start' and 'end', all at once. Add a new `_PyUnicodeError_GetParams` internal function for this. (In `exceptions.c`, it's somewhat common to not need all the attributes, but the compiler has opportunity to inline the function and optimize unneeded work away. Outside that file, we'll usually need all or most of them at once.) - Use a common implementation for the following functions: - `PyUnicode{Decode,Encode}Error_GetEncoding` - `PyUnicode{Decode,Encode,Translate}Error_GetObject` - `PyUnicode{Decode,Encode,Translate}Error_{Get,Set}Reason` - `PyUnicode{Decode,Encode,Translate}Error_{Get,Set}{Start,End}`
* gh-115765: Upgrade to GNU Autoconf 2.72 (#128411)Erlend E. Aasland2025-01-038-3104/+4509
|
* 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-033-3/+36
| | | | | `ConnectionAbortedError` (#127532) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-128104: Remove `Py_STRFTIME_C99_SUPPORT`; require C99-compliant strftime ↵Zanie Blue2025-01-035-27/+10
| | | | (#128106)
* gh-108202: Document calendar.TextCalendar formatting helpers (#127608)Stan Ulbrych2025-01-031-1/+26
| | | | | | | Document the following TextCalendar methods: - formatday() - formatmonthname() - formatweekday() - formatweekheader()
* gh-128133: use relaxed atomics for hash of bytes (#128412)Abhijeet2025-01-031-31/+39
|
* gh-128404: remove asyncio from test_type_params (#128436)Thomas Grainger2025-01-031-5/+2
|
* gh-128426: Mention PySequence_Fast in free-threading C API HOWTO (#128428)Nathan Goldbaum2025-01-031-2/+4
|
* gh-128212: Fix race in `_PyUnicode_CheckConsistency` (GH-128367)Sam Gross2025-01-021-1/+1
| | | | | There was a data race on the utf8 field between `PyUnicode_SET_UTF8` and `_PyUnicode_CheckConsistency`. Use the `_PyUnicode_UTF8()` accessor, which uses an atomic load internally, to avoid the data race.
* gh-128400: Stop-the-world when manually calling `faulthandler` (GH-128422)Peter Bierma2025-01-023-1/+36
|
* Remove asserts that confuse `enum _framestate` with `enum _frameowner` ↵Anders Kaseorg2025-01-021-2/+0
| | | | | | | | | | | | (GH-124148) The `owner` field of `_PyInterpreterFrame` is supposed to be a member of `enum _frameowner`, but `FRAME_CLEARED` is a member of `enum _framestate`. At present, it happens that `FRAME_CLEARED` is not numerically equal to any member of `enum _frameowner`, but that could change in the future. The code that incorrectly assigned `owner = FRAME_CLEARED` was deleted in commit a53cc3f49463e50cb3e2b839b3a82e6bf7f73fee (GH-116687). Remove the incorrect checks for `owner != FRAME_CLEARED` as well.
* gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() ↵Zhikang Yan2025-01-023-2/+30
| | | | | (GH-128015) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Revert "Doc: Show object descriptions in the table of contents (#125757)" ↵Hugo van Kemenade2025-01-023-10/+1
| | | | (#128406)
* gh-128404: Remove ``asyncio`` from ``test_builtin`` (#128403)Thomas Grainger2025-01-021-59/+64
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-126624: Expose error code ``XML_ERROR_NOT_STARTED`` of Expat >=2.6.4 ↵Sebastian Pipping2025-01-023-1/+13
| | | | | | | | | (#126625) Expose error code ``XML_ERROR_NOT_STARTED`` in `xml.parsers.expat.errors` which was introduced in Expat 2.6.4. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-124130: Fix a bug in matching regular expression \B in empty string ↵Serhiy Storchaka2025-01-025-25/+15
| | | | (GH-127007)
* gh-123925: Fix building curses on platforms without libncursesw (GH-128405)Serhiy Storchaka2025-01-022-1/+3
|
* gh-95371: Add support for other image formats(e.g. PNG) to the turtle… ↵Shin-myoung-serp2025-01-023-21/+34
| | | | | | | | (#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>
* gh-128349: Use `.. data::` instead of `.. class::` for pre-defined decimal ↵abkmystery2025-01-022-5/+5
| | | | `Context` objects (#128379)
* gh-126469: remove unnecessary error-checking branch in `lexer.c` (#126473)qqwqqw6892025-01-011-5/+1
|
* 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-013-11/+23
| | | 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-015-5/+47
| | | | | | | | | | | | | | | | | | ``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>
* Reword `about.rst` to not limit Sphinx (#128325)Stan Ulbrych2024-12-311-7/+8
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-128277: make globals variables thread safe in socket module (#128286)Kumar Aditya2024-12-313-36/+28
|
* gh-88834: Unify the instance check for typing.Union and types.UnionType ↵Serhiy Storchaka2024-12-313-3/+81
| | | | | | (GH-128363) Union now uses the instance checks against its parameters instead of the subclass checks.
* gh-128277: use relaxed atomics for `sock_fd` (#128304)Kumar Aditya2024-12-311-65/+102
|
* gh-128262: Allow specialization of calls to classes with __slots__ (GH-128263)Ken Jin2024-12-315-11/+17
|
* 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-128100: Use atomic dictionary load in `_PyObject_GenericGetAttrWithDict` ↵Bogdan Romanyuk2024-12-301-0/+4
| | | | (GH-128297)
* gh-119786: Mention `InternalDocs/interpreter.md` instead of non-existing ↵Yan Yanchii2024-12-301-1/+1
| | | | | | | | `adaptive.md` (#128329) `Python/specialize.c`: Mention `InternalDocs/interpreter.md` instead of non-existing `adaptive.md` Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-128317: Document `calendar.TextCalendar.formatweek` (#128353)Hugo van Kemenade2024-12-301-0/+8
|
* gh-128118: Speed up copy.copy with fast lookup for atomic and container ↵Pieter Eendebak2024-12-302-18/+11
| | | | types (#128119)
* gh-119180: Set the name of the param to __annotate__ to "format" (#124730)Jelle Zijlstra2024-12-303-2/+78
|
* Docs: correctly markup sys.monitoring "What's New" entry (#128346)Erlend E. Aasland2024-12-301-2/+2
| | | The sys.monitoring entry was added with commit d2f1d917e.
* gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements ↵Zanie Blue2024-12-303-2/+5
| | | | | (#128322) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* 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.
* GH-127381: pathlib ABCs: remove `PathBase.stat()` (#128334)Barney Gale2024-12-294-83/+62
| | | | | | | Remove the `PathBase.stat()` method. Its use of the `os.stat_result` API, with its 10 mandatory fields and low-level types, makes it an awkward fit for virtual filesystems. We'll look to add a `PathBase.info` attribute later - see GH-125413.
* gh-123424: add `ZipInfo._for_archive` to set suitable default properties ↵Bénédikt Tran2024-12-296-29/+72
| | | | | | | (#123429) --------- Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* gh-128192: mark new tests with skips based on hashlib algorithm availability ↵Gregory P. Smith2024-12-292-1/+19
| | | | | (gh-128324) Puts the _hashlib get_fips_mode logic check into test.support rather than spreading it out among other tests.
* expand the `asyncio.run_coroutine_threadsafe` recipes (#127576)Thomas Grainger2024-12-291-8/+53
| | | Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-128192: support HTTP sha-256 digest authentication as per RFC-7617 ↵Calvin Bui2024-12-286-5/+41
| | | | | | | | | (GH-128193) support sha-256 digest authentication Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-128279: Enhance the NetBSD compatibility for thread naming (#128280)Furkan Onder2024-12-283-0/+5
| | | Enhance NetBSD compatibility for thread naming in _threadmodule.c.
* gh-119786: Fix typos in `InternalDocs/parser.md` (#128314)Yan Yanchii2024-12-281-5/+5
|
* gh-128265: Support WASI/Emscripten on PDB tests, by removing asyncio from ↵Thomas Grainger2024-12-284-60/+70
| | | | | | | | | | | pdb tests (#128264) A part of `Lib/test/test_pdb.py` was previously unable to run on WASI/Emscripten platforms because it lacked support for `asyncio`. In fact, these tests could be rewritten without the `asyncio` framework because `test_pdb` tests the behavior of coroutines, which are not part of `asyncio`. Now reliance on the availability of `asyncio` has been removed and part of `test_pdb` that deals with coroutines working on WASI/Emscripten platforms.
* gh-127586: multiprocessing.Pool does not properly restore blocked signals ↵Stephen Hansen2024-12-273-3/+28
| | | | | | | | | | | | | | (try 2) (GH-128011) Correct pthread_sigmask in resource_tracker to restore old signals Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally cause side effects if the calling parent already had said signals blocked to begin with and did not intend to unblock them when creating a pool. Use SIG_SETMASK instead with the previous mask of blocked signals to restore the original blocked set. Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-127949: make deprecation of policy system more prominent (#128290)Kumar Aditya2024-12-273-6/+43
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>