Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-104683: Argument clinic: Make the `filename` parameter to `Clinic` ↵ | Alex Waygood | 2023-07-29 | 1 | -2/+1 |
| | | | | required (#107439) | ||||
* | add Kumar Aditya as CODEOWNER for import.c (#107441) | Kumar Aditya | 2023-07-29 | 1 | -0/+1 |
| | |||||
* | Fix the documentation for PyCode_New add `qualname` parameter (#107186) | da-woods | 2023-07-29 | 1 | -4/+4 |
| | |||||
* | gh-107422: Remove outdated `TypedDict` example from typing docs (#107436) | Rakesh Sabale | 2023-07-29 | 1 | -3/+0 |
| | |||||
* | Improve the GitHub issue templates (#107150) | Alex Waygood | 2023-07-29 | 3 | -27/+84 |
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> | ||||
* | gh-104050: Argument clinic: enable mypy's `--warn-return-any` setting (#107405) | Alex Waygood | 2023-07-29 | 2 | -7/+5 |
| | |||||
* | gh-107369: optimize textwrap.indent() (#107374) | Inada Naoki | 2023-07-29 | 3 | -8/+17 |
| | |||||
* | gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) | Serhiy Storchaka | 2023-07-29 | 52 | -139/+125 |
| | |||||
* | gh-107091: Fix some uses of :func: role (GH-107378) | Serhiy Storchaka | 2023-07-29 | 7 | -20/+20 |
| | | | :c:func: or :c:macro: should be used instead. | ||||
* | gh-107089: Improve Shelf.clear method performance (gh-107090) | James Cave | 2023-07-29 | 3 | -0/+10 |
| | |||||
* | gh-106881: Check for linux/limits.h before including it (#107397) | justdan6 | 2023-07-28 | 5 | -2/+12 |
| | | | | | * Check for linux/limits.h before including it Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-107307: Update the importlib Docs for PEP 684 (gh-107400) | Eric Snow | 2023-07-28 | 1 | -0/+31 |
| | |||||
* | gh-105699: Use a _Py_hashtable_t for the PyModuleDef Cache (gh-106974) | Eric Snow | 2023-07-28 | 5 | -188/+126 |
| | | | | | | | This fixes a crasher due to a race condition, triggered infrequently when two isolated (own GIL) subinterpreters simultaneously initialize their sys or builtins modules. The crash happened due the combination of the "detached" thread state we were using and the "last holder" logic we use for the GIL. It turns out it's tricky to use the same thread state for different threads. Who could have guessed? We solve the problem by eliminating the one object we were still sharing between interpreters. We replace it with a low-level hashtable, using the "raw" allocator to avoid tying it to the main interpreter. We also remove the accommodations for "detached" thread states, which were a dubious idea to start with. | ||||
* | gh-104050: Argument clinic: complete type annotations (#107399) | Alex Waygood | 2023-07-28 | 2 | -18/+24 |
| | |||||
* | gh-107305: Update the C-API Docs for PEP 684 (gh-107324) | Eric Snow | 2023-07-28 | 2 | -15/+197 |
| | |||||
* | gh-106368: Argument clinic: Fix minor bug in `state_modulename_name` (#107387) | Alex Waygood | 2023-07-28 | 2 | -5/+20 |
| | |||||
* | gh-104629: Build _testclinic extension module on Windows (#104723) | Erlend E. Aasland | 2023-07-28 | 6 | -2/+169 |
| | |||||
* | GH-101291: Add warning to "what's new" that `PyLongObject` internals have ↵ | Mark Shannon | 2023-07-28 | 1 | -0/+11 |
| | | | | changed. (GH-107388) | ||||
* | Fix typo in comment (gh-107389) | Tom Niget | 2023-07-28 | 1 | -1/+1 |
| | |||||
* | gh-102509: Start initializing `ob_digit` of `_PyLongValue` (GH-102510) | Illia Volochii | 2023-07-28 | 2 | -0/+5 |
| | |||||
* | GH-104580: Put `eval_breaker` back at the start of the interpreter state. ↵ | Mark Shannon | 2023-07-28 | 2 | -3/+8 |
| | | | | (GH-107383) | ||||
* | gh-107091: Fix some uses of :const: role (GH-107379) | Serhiy Storchaka | 2023-07-28 | 10 | -30/+29 |
| | | | It is for references, not for literals. | ||||
* | gh-106078: Isolate `decimal` module (#107287) | Charlie Zhao | 2023-07-28 | 3 | -183/+270 |
| | |||||
* | gh-106723: forward -Xfrozen_modules option to spawned process interpreters ↵ | Felipe A. Hernandez | 2023-07-28 | 2 | -1/+2 |
| | | | | | | (#106724) Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | gh-106368: Argument clinic tests: improve failure message when tests in ↵ | Alex Waygood | 2023-07-27 | 1 | -1/+1 |
| | | | | `ClinicExternalTests` fail (#107364) | ||||
* | gh-104683: Argument clinic: cleanup `state_modulename_name()` (#107340) | Alex Waygood | 2023-07-27 | 2 | -10/+35 |
| | |||||
* | gh-106931: Fix the WASM Buildbots (gh-107362) | Eric Snow | 2023-07-27 | 1 | -1/+12 |
| | | | Skip subinterpreter tests when not supported. | ||||
* | gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-107359) | Eric Snow | 2023-07-27 | 18 | -82/+80 |
| | | | The _xxsubinterpreters module should not rely on internal API. Some of the functions it uses were recently moved there however. Here we move them back (and expose them properly). | ||||
* | gh-104621: Check for Incompatible Extensions in import_find_extension() ↵ | Eric Snow | 2023-07-27 | 4 | -16/+50 |
| | | | | | (gh-107184) This fixes a bug where incompatible modules could still be imported if attempted multiple times. | ||||
* | gh-106931: Intern Statically Allocated Strings Globally (gh-107272) | Eric Snow | 2023-07-27 | 10 | -4/+123 |
| | | | | | We tried this before with a dict and for all interned strings. That ran into problems due to interpreter isolation. However, exclusively using a per-interpreter cache caused some inconsistency that can eliminate the benefit of interning. Here we circle back to using a global cache, but only for statically allocated strings. We also use a more-basic _Py_hashtable_t for that global cache instead of a dict. Ideally we would only have the global cache, but the optional isolation of each interpreter's allocator means that a non-static string object must not outlive its interpreter. Thus we would have to store a copy of each such interned string in the global cache, tied to the main interpreter. | ||||
* | gh-105699: Disable the Interpreters Stress Tests (gh-107354) | Eric Snow | 2023-07-27 | 1 | -0/+1 |
| | | | | The two tests are crashing periodically in CI and on buildbots. I suspect the problem is in the _xxsubinterpreters module. Regardless, I'm disabling the tests temporarily, to reduce the noise as we approach 3.12rc1. I'll be investigating the crashes separately. | ||||
* | gh-104432: Use `memcpy()` to avoid misaligned loads (#104433) | Christopher Chavez | 2023-07-27 | 3 | -7/+29 |
| | | | | | Fix potential unaligned memory access on C APIs involving returned sequences of `char *` pointers within the :mod:`grp` and :mod:`socket` modules. These were revealed using a ``-fsaniziter=alignment`` build on ARM macOS. | ||||
* | gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) | Serhiy Storchaka | 2023-07-27 | 19 | -79/+88 |
| | |||||
* | GH-106898: Add the exception as an argument to the `PY_UNWIND` event ↵ | Mark Shannon | 2023-07-27 | 4 | -6/+29 |
| | | | | callback function. (GH-107347) | ||||
* | gh-105268: _PyGC_FINALIZED() removal is already documented in 3.12 (#107350) | Victor Stinner | 2023-07-27 | 1 | -7/+0 |
| | |||||
* | gh-107196: Remove _PyArg_VaParseTupleAndKeywordsFast() function (#107197) | Victor Stinner | 2023-07-27 | 2 | -16/+0 |
| | | | | Remove the private _PyArg_VaParseTupleAndKeywordsFast() function: it is no longer used. | ||||
* | GH-106895: Raise a `ValueError` when attempting to disable events that ↵ | Mark Shannon | 2023-07-27 | 9 | -52/+120 |
| | | | | cannot be disabled. (GH-107337) | ||||
* | gh-105481: remove dependency of _inline_cache_entries on opname (#107339) | Irit Katriel | 2023-07-27 | 5 | -21/+23 |
| | |||||
* | GH-106897: Add `RERAISE` event to `sys.monitoring`. (GH-107291) | Mark Shannon | 2023-07-27 | 8 | -44/+231 |
| | | | * Ensures that exception handling events are balanced. Each [re]raise event has a matching unwind/handled event. | ||||
* | Bump some docs dependencies to resolve a Dependabot security alert (#107341) | Alex Waygood | 2023-07-27 | 1 | -4/+4 |
| | |||||
* | gh-103731: Remove unneeded checks for TCL_WIDE_INT_TYPE (GH-103732) | Christopher Chavez | 2023-07-27 | 1 | -4/+0 |
| | |||||
* | gh-106996: Rewrite turtle explanation (#107244) | Daniele Procida | 2023-07-27 | 1 | -54/+38 |
| | | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> | ||||
* | remove outdated `_asyncio` globals from globals-to-fix.tsv (#107334) | Kumar Aditya | 2023-07-27 | 1 | -2/+0 |
| | |||||
* | gh-107279 Add `<stddef.h>` to `Modules/zlibmodule.c` to fix failing builds ↵ | shailshouryya | 2023-07-27 | 1 | -0/+1 |
| | | | | (#107280) | ||||
* | gh-107298: Docs: add targets for some :c:member: and :c:macro: references ↵ | Serhiy Storchaka | 2023-07-27 | 3 | -40/+40 |
| | | | | | | | | (GH-107316) Add targets for PyStructSequence_Desc and PyStructSequence_Field members and macros like Py_EQ. Fix target for Py_RETURN_RICHCOMPARE. | ||||
* | gh-107091: Fix some uses of :attr: role (GH-107318) | Serhiy Storchaka | 2023-07-27 | 11 | -59/+64 |
| | | | | Fix also formatting of PyMethodDef members. | ||||
* | gh-107298: Fix more Sphinx warnings in the C API doc (#107329) | Victor Stinner | 2023-07-27 | 23 | -119/+122 |
| | | | | | | | | | | | | | | | | | | | | | | | Declare the following functions as macros, since they are actually macros. It avoids a warning on "TYPE" or "macro" argument. * PyMem_New() * PyMem_Resize() * PyModule_AddIntMacro() * PyModule_AddStringMacro() * PyObject_GC_New() * PyObject_GC_NewVar() * PyObject_New() * PyObject_NewVar() Add C standard C types to nitpick_ignore in Doc/conf.py: * int64_t * uint64_t * uintptr_t No longer ignore non existing "__int" type in nitpick_ignore. Update Doc/tools/.nitignore | ||||
* | gh-107298: Fix Sphinx warnings in the C API doc (#107302) | Victor Stinner | 2023-07-26 | 12 | -33/+26 |
| | | | | * Update Doc/tools/.nitignore * Fix BufferedIOBase.write() link in buffer.rst | ||||
* | gh-106149: fix comment on stackdepth of generators (#107321) | Irit Katriel | 2023-07-26 | 1 | -2/+3 |
| | |||||
* | Docs: Argument Clinic: Restructure "Basic concepts and usage" (#106981) | Erlend E. Aasland | 2023-07-26 | 2 | -50/+142 |
| | | | | | | | | | | | | | | Split "Basic concepts and usage" into: - Reference - Terminology - CLI reference - Background - Basic concepts Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> |