summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-111652: Fix --enable-pystats build (GH-111653)Michael Droettboom2023-11-031-0/+2
|
* CI: Make macOS Intel required to succeed (GH-110362)Hugo van Kemenade2023-11-031-1/+0
|
* docs: specify that PyBytes_AsStringAndSize returns 0 on success (GH-110888)lefp2023-11-031-0/+1
| | | docs: specify return value on success
* gh-111681: minor fixes to typing doctests; remove unused imports in ↵Nikita Sobolev2023-11-032-7/+6
| | | | | `test_typing` (#111682) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106168: Revert the "size before item" setting (#111683)scoder2023-11-033-4/+2
| | | | gh-106168: Update the size only after setting the item, to avoid temporary inconsistencies. Also remove the "what's new" sentence regarding the size setting since tuples cannot grow after allocation.
* gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and ↵Irit Katriel2023-11-0316-338/+342
| | | | frame state (#111648)
* gh-90026: support XATTRs on Cygwin (GH-105075)Philippe Cerfon2023-11-032-3/+10
|
* gh-111490: Make the exception type check in test_pyexpat more specific ↵Nikita Sobolev2023-11-031-1/+1
| | | | (GH-111491)
* gh-108082: Remove _PyErr_WriteUnraisableMsg() (GH-111643)Serhiy Storchaka2023-11-0313-149/+87
| | | | Replace the remaining calls with PyErr_FormatUnraisable().
* gh-54434: Make difflib.rst doctests pass. (#111677)Terry Jan Reedy2023-11-031-3/+5
|
* gh-111654: remove redundant decref in LOAD_FROM_DICT_OR_DEREF (#111655)AN Long2023-11-035-6/+12
|
* gh-76785: Minor Fixes in crossinterp.c (gh-111671)Eric Snow2023-11-031-126/+267
| | | There were a few corner cases I didn't handle properly in gh-111530, which I've noticed while working on a follow-up PR. This fixes those cases.
* Fix typo in documentation of `SysLogHandler.createSocket` (#111665)LoipesMas2023-11-021-3/+1
|
* gh-111663: Restore the Tier 2 uop count pystats (#111664)Michael Droettboom2023-11-021-0/+2
|
* gh-110892: Return NULL for `PyTrace_RETURN` events caused by an exception ↵Tian Gao2023-11-023-23/+49
| | | | (GH-110909)
* GH-109369 Add vectorcall to `PyLong_Type` (GH-111642)Mark Shannon2023-11-021-0/+25
|
* gh-111482: Use Argument Clinic for clock_gettime() (#111641)Victor Stinner2023-11-023-32/+142
| | | | | | | | | | | | | | | | | | Use Argument Clinic for time.clock_gettime() and time.clock_gettime_ns() functions. Benchmark on time.clock_gettime_ns(): import time import pyperf runner = pyperf.Runner() runner.timeit( 'clock_gettime_ns(CLOCK_MONOTONIC_COARSE)', setup='import time; clock_gettime_ns=time.clock_gettime_ns; CLOCK_MONOTONIC_COARSE=6', stmt='clock_gettime_ns(CLOCK_MONOTONIC_COARSE)') Result on Linux with CPU isolation: Mean +- std dev: [ref] 134 ns +- 1 ns -> [change] 55.7 ns +- 1.4 ns: 2.41x faster
* gh-111625: Fix link to Info-ZIP homepage (#111626)partev2023-11-022-4/+4
|
* build(deps): bump hypothesis from 6.87.1 to 6.88.1 in /Tools (#111596)dependabot[bot]2023-11-021-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.87.1 to 6.88.1. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.87.1...hypothesis-python-6.88.1) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump actions/setup-node from 3 to 4 (#111594)dependabot[bot]2023-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * build(deps): bump actions/setup-node from 3 to 4 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump to Node.js 20 Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-111354: simplify detection of RESUME after YIELD_VALUE at except-depth 1 ↵Irit Katriel2023-11-0218-339/+362
| | | | (#111459)
* gh-108082: Use PyErr_FormatUnraisable() (GH-111580)Serhiy Storchaka2023-11-0218-114/+83
| | | | | | Replace most of calls of _PyErr_WriteUnraisableMsg() and some calls of PyErr_WriteUnraisable(NULL) with PyErr_FormatUnraisable(). Co-authored-by: Victor Stinner <vstinner@python.org>
* Remove unnecessary includes (GH-111633)Serhiy Storchaka2023-11-022-2/+0
|
* GH-110894: Call loop exception handler for exceptions in client_connected_cb ↵Kumar Aditya2023-11-023-0/+41
| | | | | (#111601) Call loop exception handler for exceptions in `client_connected_cb` of `asyncio.start_server` so that applications can handle it.
* gh-111544: Fix mimalloc build on AIX (#111593)Ayappan Perumal2023-11-021-2/+2
|
* GH-111435: Add Support for Sharing True and False Between Interpreters ↵Anthony Shaw2023-11-024-4/+33
| | | | | (gh-111436) This only affects users of the APIs in pycore_crossinterp.h (AKA _xxsubinterpretersmodule.c and _xxinterpchannels.c).
* gh-76785: Crossinterp utils additions (gh-111530)Eric Snow2023-11-0111-471/+1308
| | | | | | | | | | | | This moves several general internal APIs out of _xxsubinterpretersmodule.c and into the new Python/crossinterp.c (and the corresponding internal headers). Specifically: * _Py_excinfo, etc.: the initial implementation for non-object exception snapshots (in pycore_pyerrors.h and Python/errors.c) * _PyXI_exception_info, etc.: helpers for passing an exception beween interpreters (wraps _Py_excinfo) * _PyXI_namespace, etc.: helpers for copying a dict of attrs between interpreters * _PyXI_Enter(), _PyXI_Exit(): functions that abstract out the transitions between one interpreter and a second that will do some work temporarily Again, these were all abstracted out of _xxsubinterpretersmodule.c as generalizations. I plan on proposing these as public API at some point.
* gh-111089: Use PyUnicode_AsUTF8() in getargs.c (#111620)Victor Stinner2023-11-011-6/+2
| | | | Replace PyUnicode_AsUTF8AndSize() with PyUnicode_AsUTF8() to remove the explicit check for embedded null characters.
* High level docs for the VM state (#111621)Guido van Rossum2023-11-011-0/+90
|
* GH-111485: Silence warnings in Python/executor_cases.c.h (#111619)Guido van Rossum2023-11-013-0/+6
|
* gh-106718: Treat PyConfig.stdlib_dir as highest-priority setting for ↵Yilei Yang2023-11-013-10/+30
| | | | stdlib_dir when calculating paths (GH-108730)
* gh-106168: Update PyList_SET_ITEM() What's New doc (#111618)Victor Stinner2023-11-011-1/+2
|
* gh-111374: Add a new PYTHON_FROZEN_MODULES env var, equivalent of `-X ↵Yilei Yang2023-11-015-6/+56
| | | | | | | frozen_modules`. (#111411) Adds a new PYTHON_FROZEN_MODULES env var to correspond with -X frozen_modules. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111520: Integrate the Tier 2 interpreter in the Tier 1 interpreter (#111428)Guido van Rossum2023-11-0119-487/+509
| | | | | | | | | | | - There is no longer a separate Python/executor.c file. - Conventions in Python/bytecodes.c are slightly different -- don't use `goto error`, you must use `GOTO_ERROR(error)` (same for others like `unused_local_error`). - The `TIER_ONE` and `TIER_TWO` symbols are only valid in the generated (.c.h) files. - In Lib/test/support/__init__.py, `Py_C_RECURSION_LIMIT` is imported from `_testcapi`. - On Windows, in debug mode, stack allocation grows from 8MiB to 12MiB. - **Beware!** This changes the env vars to enable uops and their debugging to `PYTHON_UOPS` and `PYTHON_LLTRACE`.
* Simplify trivial calls of PyUnicode_FromFormat() (GH-111605)Serhiy Storchaka2023-11-012-2/+2
|
* gh-111089: Use PyUnicode_AsUTF8() in Argument Clinic (#111585)Victor Stinner2023-11-0134-907/+180
| | | | | | | Replace PyUnicode_AsUTF8AndSize() with PyUnicode_AsUTF8() to remove the explicit check for embedded null characters. The change avoids to have to include explicitly <string.h> to get the strlen() function when using a recent version of the limited C API.
* gh-111495: Add tests for PyBytes and PyByteArray C API (GH-111496)Serhiy Storchaka2023-11-015-1/+725
|
* Simplify _PyPegen_join_names_with_dot() (GH-111602)Serhiy Storchaka2023-11-011-32/+2
|
* GH-111537: Avoid using `this_instr` in asserts. (GH-111600)Mark Shannon2023-11-012-36/+24
|
* GH-111485: Use micro-ops to split specialization code from base action ↵Mark Shannon2023-11-019-577/+858
| | | | (GH-111561)
* gh-111576: Improve documention for tkinter.messagebox (GH-111578)Serhiy Storchaka2023-11-011-10/+165
|
* gh-111495: add stub files for C API test modules (GH-111586)Sergey B Kirpichev2023-11-0113-3/+204
| | | | | This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
* gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (#111577)Victor Stinner2023-11-013-2/+34
| | | | | "./python -m test -j1 -R 3:3 --verbose3" now works as expected, since run_single_test() does not replace sys.stdout with StringIO in this case.
* gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 (#111584)Victor Stinner2023-11-0112-23/+23
|
* gh-111282: Fix NamedTemporaryFile example code (GH-111283)Krzysiek Karbowiak2023-10-311-7/+7
|
* gh-110774: allow setting the Runner(loop_factory=...) from ↵Thomas Grainger2023-10-314-2/+28
| | | | | | | IsolatedAsyncioTestCase (#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-108082: Add PyErr_FormatUnraisable() function (GH-111086)Serhiy Storchaka2023-10-317-8/+142
|
* gh-111420: Allow type comments in parenthesized `with` statements (#111468)Tomas R2023-10-315-8/+32
|
* gh-108765: Python.h no longer includes <stddef.h> on Windows (#111563)Victor Stinner2023-10-313-3/+11
| | | | In practice, only Windows is impacted, because the HAVE_STDDEF_H macro was only defined on Windows.
* gh-90815: Exclude mimalloc .c files from Windows build (#111532)Dino Viehland2023-10-316-121/+13
| | | | * Don't include mimalloc .c's in Windows build * Fix warnings on Windows related to mimalloc