summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-118926: Spill deferred references to stack in cases generator (#122748)Sam Gross2024-08-079-60/+173
| | | | | | | This automatically spills the results from `_PyStackRef_FromPyObjectNew` to the in-memory stack so that the deferred references are visible to the GC before we make any possibly escaping call. Co-authored-by: Ken Jin <kenjin@python.org>
* Docs: Change `remove` to `removes` for consistency (#121072)smij7202024-08-071-2/+3
|
* Bump types-setuptools to 71.1.0.20240726 in /Tools (#122551)dependabot[bot]2024-08-071-1/+1
|
* gh-100256: Skip inaccessible registry keys in the WinAPI mimetype ↵Lucas Esposito2024-08-073-1/+3
| | | | implementation (GH-122047)
* Doc: cmdline.rst: Include -P and -R in usage (#122590)Wim Jeantine-Glenn2024-08-071-1/+1
| | | | * ``-P``: safe path (https://docs.python.org/3/using/cmdline.html#cmdoption-P) * ``-R``: hash randomization (https://docs.python.org/3/using/cmdline.html#cmdoption-R)
* gh-122759: Remove `assert` from `RERAISE` error handling (#122760)sobolevn2024-08-072-2/+0
|
* gh-122511: Improve documentation for object identity of mutable/immutable ↵Bénédikt Tran2024-08-071-6/+10
| | | | | types (#122512) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-117139: Fix an incorrect borrow in bytecodes.c (#122318)Sam Gross2024-08-073-11/+14
| | | `_PyDict_SetItem_Take2` steals both the key (i.e., `sub`) and the value.
* gh-121151: argparse: Fix wrapping of long usage text of arguments inside a ↵Ali Hamdan2024-08-073-7/+36
| | | | mutually exclusive groups (GH-121159)
* gh-79846: Make ssl.create_default_context() ignore invalid certificates ↵pukkandan2024-08-072-5/+6
| | | | | | | (GH-91740) An error in one certificate should not cause the whole thing to fail. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix typos in comments and docstring (#122720)Xie Yanbo2024-08-079-11/+11
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-73991: Rework `pathlib.Path.rmtree()` into `delete()` (#122368)Barney Gale2024-08-077-150/+140
| | | | | | Rename `pathlib.Path.rmtree()` to `delete()`, and add support for deleting non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `copy()` methods (which will also accept any type of file.)
* gh-122571: Remove duplicate definition of PY_BUILTIN_HASHLIB_HASHES in ↵Jonathan Protzenko2024-08-062-6/+3
| | | | | | configure.ac (#122572) The redefinition in confdefs.h can cause issues with the AX_CHECK_COMPILE_FLAG macro.
* gh-122728: Fix SystemError in PyEval_GetLocals() (#122735)Victor Stinner2024-08-064-1/+23
| | | | | | | Fix PyEval_GetLocals() to avoid SystemError ("bad argument to internal function"). Don't redefine the 'ret' variable in the if block. Add an unit test on PyEval_GetLocals().
* gh-122744: Bump bundled pip to 24.2 (#122745)Pradyun Gedam2024-08-063-1/+2
| | | Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
* gh-122417: Implement per-thread heap type refcounts (#122418)Sam Gross2024-08-0618-69/+427
| | | | | | | The free-threaded build partially stores heap type reference counts in distributed manner in per-thread arrays. This avoids reference count contention when creating or destroying instances. Co-authored-by: Ken Jin <kenjin@python.org>
* gh-121103: Update site module docs for free-threaded installs (#122737)Sam Gross2024-08-061-4/+13
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Fix duplicated words 'begins with a' in pathlib docstring (#122732)Виталий Дмитриев2024-08-061-1/+1
|
* gh-112301: Add macOS warning tracking tooling (#122211)Nate Ohlson2024-08-065-55/+117
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* gh-120104: IDLE: Fix padding in config and search dialogs (#120107)Serhiy Storchaka2024-08-063-2/+3
|
* GH-120024: Move three more escaping calls out of conditional statements ↵Mark Shannon2024-08-063-10/+32
| | | | (GH-122734)
* gh-122058: `Lib/inspect`: Update docstrings for `isfunction`, `isgenerator`, ↵Kirill Podoprigora2024-08-063-10/+50
| | | | | | `isframe`, `iscode`. (#122059) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-122681: merge m_atan2() and c_atan2() helper functions (#122682)Sergey B Kirpichev2024-08-063-69/+41
|
* gh-122686: bump hypothesis from 6.104.2 to 6.108.10 in Tools (#122729)Sergey B Kirpichev2024-08-061-4/+1
| | | This drops attrs pinning.
* GH-120024: Refactor code generators to uses classes for emitting code. ↵Mark Shannon2024-08-064-274/+272
| | | | (GH-122730)
* gh-122581: Avoid data races when collecting parser statistics (#122694)Lysandros Nikolaou2024-08-062-0/+36
|
* GH-120024: Refactor code a bit so that escaping calls can be wrapped in ↵Mark Shannon2024-08-063-42/+78
| | | | spill code in code generator (GH-122693)
* Fix syntax in generate_re_casefix.py (#122699)Jelle Zijlstra2024-08-062-3/+3
| | | This was broken in gh-97963.
* gh-122595: Add more error checks in the compiler (GH-122596)Serhiy Storchaka2024-08-062-52/+145
|
* gh-122704: Fix reference leak in Modules/_pickle.c (GH-122705)Kirill Podoprigora2024-08-061-0/+4
|
* gh-116622: Android logging fixes (#122698)Malcolm Smith2024-08-063-48/+213
| | | | Modifies the handling of stdout/stderr redirection on Android to accomodate the rate and buffer size limits imposed by Android's logging infrastructure.
* gh-122686: Pin attrs package (for Hypothesis workflow) (#122687)Sergey B Kirpichev2024-08-061-0/+3
| | | Co-authored-by: Victor Stinner <vstinner@python.org>
* GH-118943: Handle races when moving jit_stencils.h (GH-120690)Miro Hrončok2024-08-052-1/+9
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* GH-122616: Simplify LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT (GH-122620)Mark Shannon2024-08-053-95/+44
|
* gh-122459: Optimize pickling by name objects without __module__ (GH-122460)Serhiy Storchaka2024-08-054-177/+173
|
* gh-121367: [doc] BUILD_TUPLE arg can be 0 (#122663)Irit Katriel2024-08-051-4/+8
|
* build(deps-dev): bump mypy from 1.10.1 to 1.11.1 in /Tools (#122550)dependabot[bot]2024-08-052-2/+4
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
* gh-122573: Require Python 3.10 or newer for Windows builds (GH-122574)Jonathan Protzenko2024-08-042-3/+4
| | | | | | Match statements in tooling require a more recent Python. Tools/cases_generator/*.py (and `Tools/jit/*.py` in 3.13+). Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Add `3.13` and remove `3.7` in Azure Pipelines (#122670)Damien2024-08-041-1/+1
|
* gh-122661: Remove GNU make-specific directive from Doc/Makefile (#122662)Libor Martínek2024-08-041-16/+20
|
* gh-122637: fix tanh(±0+infj) and tanh(±0+nanj) to return ±0+nanj (#122638)Sergey B Kirpichev2024-08-043-14/+15
| | | | | | | | | As per C11 DR#471, ctanh (0 + i NaN) and ctanh (0 + i Inf) should return 0 + i NaN (with "invalid" exception in the second case). This has corresponding implications for ctan(z), as its errors and special cases are handled as if the operation is implemented by -i*ctanh(i*z). This patch fixes cmath's code to do same. Glibs patch: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d15e83c5f5231d971472b5ffc9219d54056ca0f1
* gh-121889: cmath.acosh(0+nanj) returns nan+pi/2j (#121892)Sergey B Kirpichev2024-08-043-4/+5
| | | | | As per C11 DR#471 (adjusted resolution accepted for C17), cacosh (0 + iNaN) should return NaN ± i pi/2, not NaN + iNaN. This patch fixes cmath's code to do same.
* gh-122623: Improve `c-api/bytearray.rst` with error handling info (#122624)sobolevn2024-08-031-2/+7
|
* GH-121970: Fix ``gettext`` for audit events (#122651)Adam Turner2024-08-031-0/+2
|
* gh-109408: Remove ``.azure-pipelines/pr.yml`` (#122643)Adam Turner2024-08-033-58/+0
| | | This no longer does anything useful, beyond wasting Azure resources.
* Doc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (#122646)scottwoodall2024-08-031-1/+1
|
* gh-122334: Fix test_embed failure when missing _ssl module (GH-122630)neonene2024-08-031-2/+6
| | | Co-authored-by: Wulian233 <1055917385@qq.com>
* GH-109408: Stop running patchcheck in CI (#109895)Adam Turner2024-08-033-131/+12
|
* gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-#122280)Sergey B Kirpichev2024-08-031-0/+11
|
* Doc: Improve wording of ``os.path.commonpath()`` (#122627)Matth-M2024-08-031-1/+1
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>