summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-41872: Fix quick extraction of module docstrings from a file in pydoc ↵Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2025-01-083-15/+104
| | | | | | | | | (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-87506: Amend json.loads() post PR #127355 (#128609)Erlend E. Aasland2025-01-081-6/+2
|
* gh-87506: Document that json.load*() can raise UnicodeDecodeError (#127355)Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2025-01-081-0/+4
| | | Co-authored-by: Erlend Aasland <erlend@python.org>
* GH-127809: Fix the JIT's understanding of ** (GH-127844)Brandt Bucher2025-01-088-26/+199
|
* gh-127614: Correctly check for ttyname_r() in configure (#128503)Erlend E. Aasland2025-01-075-10/+10
| | | | PR #14868 replaced the ttyname() call with ttyname_r(), but the old check remained.
* gh-127350: Add more tests for Py_fopen() (GH-128587)Serhiy Storchaka2025-01-073-25/+33
|
* Docs: mark up json.load() using parameter list (#128488)Erlend E. Aasland2025-01-071-44/+69
|
* gh-115999: Add free-threaded specialization for COMPARE_OP (#126410)T. Wouters2025-01-074-12/+42
| | | | | 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-111178: fix UBSan failures in `Modules/_sre/sre.c` (GH-128250)Bénédikt Tran2025-01-071-35/+56
| | | fix UBSan failures for `PatternObject`, `MatchObject`, `TemplateObject`, `ScannerObject`
* gh-111178: fix UBSan failures in `Modules/_abc.c` (GH-128253)Bénédikt Tran2025-01-071-5/+9
| | | | * fix UBSan failures in `_abc.c` * suppress unused return values
* gh-128552: fix refcycles in eager task creation (#128553)Thomas Grainger2025-01-074-6/+71
|
* gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284)Stephen Morton2025-01-074-5/+100
| | | | | | | | * 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.
* Add `.. availability:: Windows` directive to COM-related function prototype ↵Jun Komoda2025-01-071-0/+2
| | | | | (GH-127436) Add a directive to prototype that "returns a foreign function that will call a COM method"
* gh-108202: Document calendar.Calendar.firstweekday (#128566)Erlend E. Aasland2025-01-071-4/+16
|
* gh-128146: Exclude os/log.h import on older macOS versions. (#128165)Russell Keith-Magee2025-01-072-11/+24
| | | | Reworks the handling of Apple system log handling to account for older macOS versions that don't provide os-log.
* gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors ↵Zanie Blue2025-01-073-2/+11
| | | | | | | | | | | | | (gh-128511) * Add `-skip-funcs` to BOLT options to fix computed goto errors Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com> * NEWS --------- Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
* gh-108202: Document `calendar.Calendar` methods `getfirstweekday` and ↵Stan Ulbrych2025-01-061-0/+8
| | | | `setfirstweekday` (#127579)
* gh-128559: Remove typing import from asyncio.timeouts (#128560)Michael H2025-01-062-13/+12
|
* gh-127146: Strip dash from Emscripten compiler version (#128557)Hood Chatham2025-01-062-2/+2
| | | | | `emcc -dumpversion` will sometimes say e.g., `4.0.0-git` but in this case uname does not include `-git` in the version string. Use cut to delete everything after the dash.
* 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-064-139/+127
|
* 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-0627-544/+827
|
* GH-128073: Include `EXIT_IF` when checking for escaping calls (GH-128537)Mark Shannon2025-01-062-1/+26
|
* gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)Victor Stinner2025-01-0618-53/+270
|
* gh-128340: add thread safe handle for `loop.call_soon_threadsafe` (#128369)Kumar Aditya2025-01-064-1/+151
| | | Adds `_ThreadSafeHandle` to be used for callbacks scheduled with `loop.call_soon_threadsafe`.
* gh-90241: Clarify documentation for PyUnicode_FSConverter and ↵Serhiy Storchaka2025-01-062-11/+36
| | | | | | PyUnicode_FSDecoder (GH-128451) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-111178: fix UBSan failures in `Objects/descrobject.c` (GH-128245)Bénédikt Tran2025-01-061-7/+10
| | | fix UBSan failures for `propertyobject`
* gh-77214: Update outdated documentation for numeric PyArg_Parse formats ↵Serhiy Storchaka2025-01-061-8/+14
| | | | (GH-128454)
* gh-128089: Add PYC magic number for VALUE_WITH_FAKE_GLOBALS (#128097)Jelle Zijlstra2025-01-061-1/+1
| | | | Assign 3610 PYC magic number to VALUE_WITH_FAKE_GLOBALS format of annotationlib.
* gh-102471: convert decimal module to use PyLong_Export API (PEP 757) (#128267)Sergey B Kirpichev2025-01-061-24/+27
|
* 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-065-2/+59
| | | | | | | | | | | 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>
* Docs: fix `MessageDefect` references in email.policy docs (#128468)Yuki Kobayashi2025-01-052-3/+2
|
* gh-128504: Upgrade doctest to ubuntu-24.04 (#128506)Damien2025-01-051-1/+1
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-128137: Update PyASCIIObject to handle interned field with the atomic ↵Donghee Na2025-01-053-10/+18
| | | | operation (gh-128196)
* gh-128437: Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` (gh-128455)Zanie Blue2025-01-052-4/+32
| | | | | Add `BOLT_COMMON_FLAGS` with `-update-debug-sections` Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
* gh-115765: Document and enforce Autoconf 2.72 requirement (#128502)Erlend E. Aasland2025-01-042-3/+6
|
* gh-127553: Remove outdated TODO comment in _pydatetime (#127564)Beomsoo Kim2025-01-041-1/+0
|
* gh-127954: Document PyObject_DelItemString (#127986)RUANG (James Roy)2025-01-041-0/+7
|
* Docs: amend json.dump() post gh-128482 (#128489)Erlend E. Aasland2025-01-041-5/+8
|
* gh-126719: Clarify math.fmod docs (#127741)Stan Ulbrych2025-01-041-1/+2
| | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* 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`.
* Docs: mark up json.dump() using parameter list (#128482)Erlend E. Aasland2025-01-041-48/+70
| | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* 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-043-0/+15
| | | | comments (#128464)
* Add `check-readthedocs` pre-commit hook (#128453)sobolevn2025-01-041-0/+1
|
* gh-128002: fix many thread safety issues in asyncio (#128147)Kumar Aditya2025-01-043-175/+951
| | | | | | * 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-125985: Fix `cmodule_function()` scaling benchmark (#128460)Sam Gross2025-01-031-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 Blue2025-01-032-43/+41
|