Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | gh-125985: Fix `cmodule_function()` scaling benchmark (#128460) | Sam Gross | 2025-01-03 | 1 | -3/+11 | |
| | | | | | | | | | | | Add a separate benchmark that measures the effect of `_PyObject_LookupSpecial()` on scaling. In the process of cleaning up the scaling benchmarks for inclusion, I unintentionally changed the "cmodule_function" benchmark to pass an `int` to `math.floor()` instead of a `float`, which causes it to use the `_PyObject_LookupSpecial()` code path. `_PyObject_LookupSpecial()` has its own scaling issues that we want to measure separately from calling a function on a C module. | |||||
* | gh-128354: Consistently use LIBS over LDFLAGS in library build checks (#128359) | Zanie Blue | 2025-01-03 | 2 | -43/+41 | |
| | ||||||
* | gh-128456: Use '-reorder-functions=cdsort' for BOLT builds (#128457) | Zanie Blue | 2025-01-03 | 2 | -2/+2 | |
| | | | 'hfsort+' is deprecated in favor of 'cdsort'. | |||||
* | gh-128400: Only show the current thread in `faulthandler` if the GIL is ↵ | Peter Bierma | 2025-01-03 | 4 | -5/+45 | |
| | | | | disabled (GH-128425) | |||||
* | gh-127903: Fix a crash on debug builds when calling ↵ | Alexander Shadchin | 2025-01-03 | 3 | -3/+15 | |
| | | | | `Objects/unicodeobject::_copy_characters`` (#127876) | |||||
* | gh-89083: improve UUIDv8 uniqueness tests (GH-128149) | Bénédikt Tran | 2025-01-03 | 1 | -6/+10 | |
| | | | improve UUIDv8 uniqueness tests | |||||
* | gh-111178: fix UBSan failures in `Modules/zlibmodule.c` (GH-128252) | Bénédikt Tran | 2025-01-03 | 1 | -5/+9 | |
| | ||||||
* | gh-111178: fix UBSan failures in `Objects/tupleobject.c` (GH-128251) | Bénédikt Tran | 2025-01-03 | 1 | -14/+20 | |
| | | | fix UBSan failures for `_PyTupleIterObject` | |||||
* | gh-111178: fix UBSan failures in `Objects/enumobject.c` (GH-128246) | Bénédikt Tran | 2025-01-03 | 1 | -22/+35 | |
| | | | | * fix UBSan failures for `enumobject` * fix UBSan failures for `reversedobject` | |||||
* | gh-111178: fix UBSan failures in `Modules/curses*.c` (GH-128244) | Bénédikt Tran | 2025-01-03 | 2 | -71/+114 | |
| | | | | | * fix UBSan failures in `_cursesmodule.c` * fix UBSan failures in `_curses_panel.c` * suppress an unused return value | |||||
* | gh-111178: fix UBSan failures in `Modules/_csv.c` (GH-128243) | Bénédikt Tran | 2025-01-03 | 1 | -28/+48 | |
| | | | Also: suppress unused return values | |||||
* | gh-112015: Implement `ctypes.memoryview_at()` (GH-112018) | Rian Hunter | 2025-01-03 | 6 | -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 Kemenade | 2025-01-03 | 5 | -13/+85 | |
| | | | | Co-authored-by: Peter Bierma <zintensitydev@gmail.com> | |||||
* | gh-127787: refactor helpers for `PyUnicodeErrorObject` internal interface ↵ | Bénédikt Tran | 2025-01-03 | 2 | -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. Aasland | 2025-01-03 | 8 | -3104/+4509 | |
| | ||||||
* | gh-128404: Remove `asyncio` from `Lib/test/test_sys_settrace` (#128435) | Thomas Grainger | 2025-01-03 | 1 | -6/+2 | |
| | ||||||
* | gh-127529: Correct asyncio's `accept_connection` behaviour for handling ↵ | jb2170 | 2025-01-03 | 3 | -3/+36 | |
| | | | | | `ConnectionAbortedError` (#127532) Co-authored-by: Kumar Aditya <kumaraditya@python.org> | |||||
* | gh-128104: Remove `Py_STRFTIME_C99_SUPPORT`; require C99-compliant strftime ↵ | Zanie Blue | 2025-01-03 | 5 | -27/+10 | |
| | | | | (#128106) | |||||
* | gh-108202: Document calendar.TextCalendar formatting helpers (#127608) | Stan Ulbrych | 2025-01-03 | 1 | -1/+26 | |
| | | | | | | | Document the following TextCalendar methods: - formatday() - formatmonthname() - formatweekday() - formatweekheader() | |||||
* | gh-128133: use relaxed atomics for hash of bytes (#128412) | Abhijeet | 2025-01-03 | 1 | -31/+39 | |
| | ||||||
* | gh-128404: remove asyncio from test_type_params (#128436) | Thomas Grainger | 2025-01-03 | 1 | -5/+2 | |
| | ||||||
* | gh-128426: Mention PySequence_Fast in free-threading C API HOWTO (#128428) | Nathan Goldbaum | 2025-01-03 | 1 | -2/+4 | |
| | ||||||
* | gh-128212: Fix race in `_PyUnicode_CheckConsistency` (GH-128367) | Sam Gross | 2025-01-02 | 1 | -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 Bierma | 2025-01-02 | 3 | -1/+36 | |
| | ||||||
* | Remove asserts that confuse `enum _framestate` with `enum _frameowner` ↵ | Anders Kaseorg | 2025-01-02 | 1 | -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 Yan | 2025-01-02 | 3 | -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 Kemenade | 2025-01-02 | 3 | -10/+1 | |
| | | | | (#128406) | |||||
* | gh-128404: Remove ``asyncio`` from ``test_builtin`` (#128403) | Thomas Grainger | 2025-01-02 | 1 | -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 Pipping | 2025-01-02 | 3 | -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 Storchaka | 2025-01-02 | 5 | -25/+15 | |
| | | | | (GH-127007) | |||||
* | gh-123925: Fix building curses on platforms without libncursesw (GH-128405) | Serhiy Storchaka | 2025-01-02 | 2 | -1/+3 | |
| | ||||||
* | gh-95371: Add support for other image formats(e.g. PNG) to the turtle… ↵ | Shin-myoung-serp | 2025-01-02 | 3 | -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 ↵ | abkmystery | 2025-01-02 | 2 | -5/+5 | |
| | | | | `Context` objects (#128379) | |||||
* | gh-126469: remove unnecessary error-checking branch in `lexer.c` (#126473) | qqwqqw689 | 2025-01-01 | 1 | -5/+1 | |
| | ||||||
* | Fix while statements with non-bool conditions in `_pyrepl` (#127509) | RUANG (James Roy) | 2025-01-01 | 2 | -2/+2 | |
| | | | Fix non-bool value conditions | |||||
* | gh-128277: remove unnecessary critical section from `socket.close` (#128305) | Kumar Aditya | 2025-01-01 | 3 | -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 Podoprigora | 2025-01-01 | 5 | -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 Ulbrych | 2024-12-31 | 1 | -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 Aditya | 2024-12-31 | 3 | -36/+28 | |
| | ||||||
* | gh-88834: Unify the instance check for typing.Union and types.UnionType ↵ | Serhiy Storchaka | 2024-12-31 | 3 | -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 Aditya | 2024-12-31 | 1 | -65/+102 | |
| | ||||||
* | gh-128262: Allow specialization of calls to classes with __slots__ (GH-128263) | Ken Jin | 2024-12-31 | 5 | -11/+17 | |
| | ||||||
* | gh-128342: Specify timeout unit in subprocess docstrings (GH-128343) | n-l-i | 2024-12-30 | 1 | -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 Romanyuk | 2024-12-30 | 1 | -0/+4 | |
| | | | | (GH-128297) | |||||
* | gh-119786: Mention `InternalDocs/interpreter.md` instead of non-existing ↵ | Yan Yanchii | 2024-12-30 | 1 | -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 Kemenade | 2024-12-30 | 1 | -0/+8 | |
| | ||||||
* | gh-128118: Speed up copy.copy with fast lookup for atomic and container ↵ | Pieter Eendebak | 2024-12-30 | 2 | -18/+11 | |
| | | | | types (#128119) | |||||
* | gh-119180: Set the name of the param to __annotate__ to "format" (#124730) | Jelle Zijlstra | 2024-12-30 | 3 | -2/+78 | |
| | ||||||
* | Docs: correctly markup sys.monitoring "What's New" entry (#128346) | Erlend E. Aasland | 2024-12-30 | 1 | -2/+2 | |
| | | | The sys.monitoring entry was added with commit d2f1d917e. | |||||
* | gh-128321: Set LIBS instead of LDFLAGS when checking sqlite3 requirements ↵ | Zanie Blue | 2024-12-30 | 3 | -2/+5 | |
| | | | | | (#128322) Co-authored-by: Erlend E. Aasland <erlend@python.org> |