summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* gh-122313: Clean up deep recursion guarding code in the compiler (GH-122640)Serhiy Storchaka2024-08-033-162/+164
| | | | | | | | | Add ENTER_RECURSIVE and LEAVE_RECURSIVE macros in ast.c, ast_opt.c and symtable.c. Remove VISIT_QUIT macro in symtable.c. The current recursion depth counter only needs to be updated during normal execution -- all functions should just return an error code if an error occurs.
* gh-122560: add test that comprehension loop var appears only in one scope of ↵Irit Katriel2024-08-021-0/+21
| | | | the symtable (#122582)
* gh-122527: Fix a crash on deallocation of `PyStructSequence` (GH-122577)Sam Gross2024-08-024-7/+41
| | | | | | | | | | | | | | The `PyStructSequence` destructor would crash if it was deallocated after its type's dictionary was cleared by the GC, because it couldn't compute the "real size" of the instance. This could occur with relatively straightforward code in the free-threaded build or with a reference cycle involving the type in the default build, due to differing orders in which `tp_clear()` was called. Account for the non-sequence fields in `tp_basicsize` and use that, along with `Py_SIZE()`, to compute the "real" size of a `PyStructSequence` in the dealloc function. This avoids the accesses to the type's dictionary during dealloc, which were unsafe.
* GH-117224: Move the body of a few large-ish micro-ops into helper functions ↵Mark Shannon2024-08-025-335/+163
| | | | (GH-122601)
* gh-122445: populate only modified fields in __static_attributes__ (#122446)Irit Katriel2024-08-025-10/+18
|
* gh-122334: Fix crash when importing ssl after re-initialization (#122481)neonene2024-08-023-0/+33
| | | | * Fix crash when importing ssl after re-initialization