summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* gh-120974: Make asyncio `swap_current_task` safe in free-threaded build ↵Sam Gross2024-08-023-31/+67
| | | | | (#122317) * gh-120974: Make asyncio `swap_current_task` safe in free-threaded build
* gh-121723: Relax constraints on queue objects for ↵Bénédikt Tran2024-08-024-50/+124
| | | | `logging.handlers.QueueHandler`. (GH-122154)
* Update PyObject_Del() documentation (#122597)Victor Stinner2024-08-024-18/+13
| | | Replace PyMem_Del() with PyMem_Free().
* gh-122188: Remove _imp.pyc_magic_number (GH-122503)Serhiy Storchaka2024-08-023-10/+8
| | | _imp.pyc_magic_number_token should be enough.
* gh-122544: Change OS image in readthedocs.yml to ubuntu-24.04 (#122568)Damien2024-08-021-1/+1
|
* gh-120083: Add IDLE Hovertip foreground color needed for recent macOS (#120605)John Riggles2024-08-023-2/+11
| | | | | | | | On recent versions of macOS (sometime between Catalina and Sonoma 14.5), the default Hovertip foreground color changed from black to white, thereby matching the background. This might be a matter of matching the white foreground of the dark-mode text. The unreadable result is shown here (#120083 (comment)). The foreground and background colors were made parameters so we can pass different colors for future additional hovertips in IDLE. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fixes typo in idlelib/idle_test/example_stub.pyi (#122520)Jonathon Vandezande2024-08-021-1/+1
| | | | --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-122562: Remove ste_free and ste_child_free from symtable (#122563)Jelle Zijlstra2024-08-012-15/+0
|
* GH-118095: Add tier two support for BINARY_SUBSCR_GETITEM (GH-120793)Mark Shannon2024-08-0110-207/+317
|
* Replace PyObject_Del with PyObject_Free (#122453)Victor Stinner2024-08-0113-18/+18
| | | | PyObject_Del() is just a alias to PyObject_Free() kept for backward compatibility. Use directly PyObject_Free() instead.
* gh-122555: Remove removed functions from `Doc/data/refcounts.dat` (#122556)Bénédikt Tran2024-08-012-11/+0
|
* gh-122384: Mark strings from Download page for translation (#122385)Rafael Fontenelle2024-08-011-32/+42
| | | | Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* GH-122155: Track local variables between pops and pushes in cases generator ↵Mark Shannon2024-08-0113-159/+463
| | | | (GH-122286)
* Fix typos in docs, error messages and comments (#122502)jianghuyiyuan2024-08-016-6/+6
| | | Signed-off-by: jianghuyiyuan <shuangcui@live.com>
* gh-116622: Don't expose `FICLONE` ioctl on Android (#122522)Malcolm Smith2024-08-012-0/+7
| | | | | Don't expose `FICLONE` ioctl on Android Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
* gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't ↵Malcolm Smith2024-07-311-2/+2
| | | | support pwd.getpwall (GH-122521)
* gh-87320: In the code module, handle exceptions raised in sys.excepthook ↵CF Bolz-Tereick2024-07-314-3/+76
| | | | | | | (GH-122456) Before, the exception caused by calling non-default sys.excepthook in code.InteractiveInterpreter bubbled up to the caller, ending the REPL.
* Move change detection to separate workflow in CI (#122336)Sviatoslav Sydorenko (Святослав Сидоренко)2024-07-312-118/+163
|