summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-118216: Don't consider dotted `__future__` imports (#118267)Crowthebird2024-05-025-2/+26
|
* GH-117442: Check eval-breaker at start (rather than end) of tier 2 loops ↵Mark Shannon2024-05-0210-174/+137
| | | | (GH-118482)
* gdb/libpython.py: Update PyLongObjectPtr docstring (GH-118438)Andrej2024-05-021-6/+10
|
* docs: typo: tiny grammar change: "pointed by" -> "pointed to by" (#118411)Andrew Zipperer2024-05-025-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs: tiny grammar change: "pointed by" -> "pointed to by" This commit uses "file pointed to by" to replace "file pointed by" in - doc for shutil.copytree - docstring for shutil.copytree - docstring _abc.PathBase.open - docstring for pathlib.Path.open - doc for os.copy_file_range - doc for os.splice The docs use "file pointed to by" more frequently than "file pointed by". So, this commit replaces the uses of "file pointed by" in order to make the uses consistent through the docs. ```bash $ grep -ri 'pointed to by' cpython/ ``` yields more results than ```bash $ grep -ri 'pointed by' cpython/ ``` Separately: There are two occurrences of "tree pointed by": - cpython/Doc/library/xml.etree.elementtree.rst for `xml.etree.ElementInclude.include` - cpython/Lib/xml/etree/ElementInclude.py for `include` For those uses of "tree pointed by", I expect "tree pointed to by" instead. However, I found enough uses online of (a) "tree pointed by" rather than (b) "tree pointed to by" to convince me that (a) is in common use. So, this commit does not replace those occurrences of "tree pointed by" to "tree pointed to by". But I will replace them if a reviewer believes it is correct to replace them. * docs: typo: "exists and executable" -> "exists and is executable" --------- Co-authored-by: Andrew-Zipperer <atzipperer@gmail.com>
* gh-118335: Rename --experimental-interpreter on Windows to ↵Guido van Rossum2024-05-022-4/+5
| | | | | --experimental-jit-interpreter (#118497) Also fix docs for this in whatsnew.
* gh-117953: Work Relative to Specific Extension Kinds in the Import Machinery ↵Eric Snow2024-05-013-66/+324
| | | | | (gh-118205) This change will make some later changes simpler.
* gh-118335: Make REGEN_JIT_COMMAND empty if tier2 interpreter enabled (#118493)Guido van Rossum2024-05-013-18/+31
| | | | Also patch up news blurb for gh-118339 (add warning that PYTHON_UOPS is now PYTHON_JIT).
* GH-118174: specify the type for the path argument of shutil.whichFilipe Laíns2024-05-011-2/+3
|
* gh-118413: Temporarily skip `test_release_task_refs` in free-threaded builds ↵Sam Gross2024-05-011-0/+1
| | | | (#118491)
* gh-117607: Speedup os.path.relpath() (GH-117608)Nice Zombies2024-05-013-12/+16
|
* GH-113464: Display a warning when building the JIT (GH-118481)Brandt Bucher2024-05-016-26/+38
|
* GH-118095: Make sure that progress is made if there are pending calls being ↵Mark Shannon2024-05-012-12/+11
| | | | handled. (GH-118484)
* gh-118433: Temporarily skip `test_interrupt_main_subthread` in free-threaded ↵mpage2024-05-011-1/+2
| | | | | | | | | builds (#118485) Free-threaded builds can intermittently tickle a longstanding bug (24 years!) in the implementation of `threading.Condition`, leading to flakiness in the test suite. Fixing the underlying issue will require more discussion, and will likely apply to most of the concurrency primitives in the `threading` module that are written in Python. See gh-118433 for more details.
* gh-118272: set stacktop to 0 before freeing contents, to avoid access to ↵Irit Katriel2024-05-011-2/+3
| | | | invalid objects during GC (#118478)
* build(deps-dev): bump types-psutil from 5.9.5.20240316 to 5.9.5.20240423 in ↵dependabot[bot]2024-05-011-1/+1
| | | | | | /Tools (#118464) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-117225: Move colorize functionality to own internal module (#118283)Hugo van Kemenade2024-05-018-180/+218
|
* gh-117225: Document colour use in `doctest` (#118268)Hugo van Kemenade2024-05-012-3/+25
|
* gh-110850: Add PyTime_TimeRaw() function (#118394)Victor Stinner2024-05-017-35/+189
| | | | | | | | | | | | | | | | | Add "Raw" variant of PyTime functions: * PyTime_MonotonicRaw() * PyTime_PerfCounterRaw() * PyTime_TimeRaw() Changes: * Add documentation and tests. Tests release the GIL while calling raw clock functions. * py_get_system_clock() and py_get_monotonic_clock() now check that the GIL is hold by the caller if raise_exc is non-zero. * Reimplement "Unchecked" functions with raw clock functions. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* Expand the 'Extending' docs with an example. (#113187)Jason R. Coombs2024-05-011-0/+78
| | | | | * Expand the 'Extending' docs to provide a minimal example. Closes python/importlib_metadata#427. Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-116622: Android sysconfig updates (#118352)Malcolm Smith2024-05-016-5/+53
|
* Bump types-setuptools from 69.2.0.20240317 to 69.5.0.20240423 in /Tools ↵dependabot[bot]2024-05-011-1/+1
| | | | | | (#118463) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump mypy from 1.9.0 to 1.10.0 in /Tools (#118461)dependabot[bot]2024-05-011-1/+1
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-99730: urllib.request: Keep HEAD method on redirect (GH-99731)Harmen Stoppels2024-05-013-0/+11
|
* GH-115802: Use the GHC calling convention in JIT code (GH-118287)Brandt Bucher2024-05-018-27/+117
|
* gh-117958: Expose JIT code via method in UOpExecutor (#117959)Anthony Shaw2024-05-012-1/+26
|
* gh-99180: Remove traceback anchors in return and assign statements that ↵Pablo Galindo Salgado2024-05-013-33/+240
| | | | cover all the displayed range (#112670)
* gh-116767: fix crash on 'async with' with many context managers (GH-118348)Irit Katriel2024-05-014-7/+50
| | | | | | | Account for `add_stopiteration_handler` pushing a block for `async with`. To allow generator functions that previously almost hit the `CO_MAXBLOCKS` limit by nesting non-async blocks, the limit is increased by 1. This increase allows one more block in non-generator functions.
* GH-118095: Make invalidating and clearing executors memory safe (GH-118459)Mark Shannon2024-05-015-42/+103
|
* Test syntax error on comma-less tuple-style sequence patterns (#115485)da-woods2024-05-011-0/+8
| | | | | Adds a test that length-1 tuple-style sequence patterns must end in a comma, since there isn't currently one. Spotted while reviewing Cython's proposed implementation of the pattern matching syntax (https://github.com/cython/cython/pull/4897#discussion_r1489177169) where there was a bug my the reimplementation that wasn't caught against the CPython tests here.
* GH-117881: fix athrow().throw()/asend().throw() concurrent access (GH-117882)Thomas Grainger2024-05-013-2/+235
|
* gh-116622: Add Android testbed (GH-117878)Malcolm Smith2024-05-0119-10/+570
| | | | | | | Add code and config for a minimal Android app, and instructions to build and run it. Improve Android build instructions in general. Add a tool subcommand to download the Gradle wrapper (with its binary blob). Android studio must be downloaded manually (due to the license).
* gh-118201: Accomodate flaky behavior of `os.sysconf` on iOS (GH-118453)Russell Keith-Magee2024-05-012-1/+3
|
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-0132-42/+181
| | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
* gh-118201 - Disable the flaky POSIX test_confstr test on iOS (GH-118452)Russell Keith-Magee2024-04-301-0/+1
|
* gh-117657: Don't specialize RESUME_CHECK when specialization is disabled ↵Ken Jin2024-04-302-0/+4
| | | | (GH-118349)
* gh-117139: Add header for tagged pointers (GH-118330)Ken Jin2024-04-304-0/+200
| | | | | --------- Co-authored-by: Sam Gross <655866+colesbury@users.noreply.github.com>
* gh-118422: Fix run_fileexflags() test (#118429)Victor Stinner2024-04-304-58/+62
| | | | | Don't test the undefined behavior of fileno() on a closed file, but use fstat() as a reliable test if the file was closed or not.
* gh-118124: Use static_assert() in Py_BUILD_ASSERT() on C11 (#118398)Victor Stinner2024-04-304-16/+45
| | | | | | Use static_assert() in Py_BUILD_ASSERT() and Py_BUILD_ASSERT_EXPR() on C11 and newer and C++11 and newer. Add tests to test_cext and test_cppext.
* gh-118218: Reuse return tuple in itertools.pairwise (GH-118219)Shantanu2024-04-303-2/+40
|
* gh-118406: Add signature for sqlite3.Connection objects (#118428)Erlend E. Aasland2024-04-303-0/+13
|
* [gh-117657] Fix some issues with TSAN in typeobject (#118249)Dino Viehland2024-04-302-6/+19
| | | Fix some racing reads in typebobject.c
* gh-118332: Fix deadlock involving stop the world (#118412)Sam Gross2024-04-305-7/+96
| | | | | | Avoid detaching thread state when stopping the world. When re-attaching the thread state, the thread would attempt to resume the top-most critical section, which might now be held by a thread paused for our stop-the-world request.
* gh-117657: Fix small issues with instrumentation and TSAN (#118064)Dino Viehland2024-04-307-13/+25
| | | Small TSAN fixups for instrumentation
* gh-118272: Clear generator frame's locals when the generator is closed (#118277)Irit Katriel2024-04-305-5/+38
| | | Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-109975: Document crypt_r as a possible replacement of crypt (#118439)Miro Hrončok2024-04-301-1/+4
|
* gh-117618: Make package.module searchable for breakpoints and clean up docs ↵Tian Gao2024-04-304-15/+69
| | | | (#117619)
* gh-118418: Use a default value for `type_params` in `typing._eval_type` ↵Nikita Sobolev2024-04-301-2/+2
| | | | (#118431)
* gh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)Seth Michael Larson2024-04-302-5/+31
|
* gh-118379: Use PyTuple_Pack instead of Py_BuildValue if possible (GH-118381)Nice Zombies2024-04-306-9/+9
|
* gh-118402: Fix inspect.signature() for functools.cmp_to_key() result (GH-118427)Serhiy Storchaka2024-04-303-3/+23
|