summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-107559: Argument Clinic: complain about non-ASCII chars in param ↵Erlend E. Aasland2023-08-022-3/+24
| | | | | | | | docstrings (#107560) Previously, only function docstrings were checked for non-ASCII characters. Also, improve the warn() message. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104146: Remove dead code from Argument Clinic (#107555)Erlend E. Aasland2023-08-022-5/+0
|
* gh-104683: Argument Clinic: Refactor and simplify 'add docstring' states ↵Erlend E. Aasland2023-08-012-32/+45
| | | | | | | | | (#107550) Introduce docstring_append() helper, and use it for both parameter and function docstrings. Remove docstring fixup from do_post_block_processing_cleanup(); instead, make sure no fixup is needed. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104683: Argument clinic: cleanup `DLSParser` `state_foo` methods (#107543)Alex Waygood2023-08-011-22/+11
|
* Clarify `Self` interaction with subclasses (#107511)Alexandru Mărășteanu2023-08-011-10/+21
|
* gh-104683: Argument clinic: remove the `LandMine` class (#107541)Alex Waygood2023-08-012-23/+21
|
* gh-105481: combine regen-opcode-targets with regen-opcode to avoid ↵Irit Katriel2023-08-015-68/+16
| | | | calculating the specialized opcodes in two places (#107540)
* gh-105481: the ENABLE_SPECIALIZATION flag does not need to be generated by ↵Irit Katriel2023-08-018-12/+21
| | | | the build script, or exposed in opcode.py (#107534)
* gh-107467: Restructure Argument Clinic command-line interface (#107469)Erlend E. Aasland2023-08-013-66/+57
| | | | | | | - Use ArgumentParser.error() to handle CLI errors - Put the entire CLI in main() - Rework ClinicExternalTest to call main() instead of using subprocesses Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* gh-106092: Fix use-after-free crash in frame_dealloc (#106875)Anders Kaseorg2023-08-012-6/+9
| | | | | | | | | It was possible for the trashcan to delay the deallocation of a PyFrameObject until after its corresponding _PyInterpreterFrame has already been freed. So frame_dealloc needs to avoid dereferencing the f_frame pointer unless it first checks that the pointer still points to the interpreter frame within the frame object. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* Remove newlines from bug template (#107525)Hugo van Kemenade2023-08-011-4/+2
|
* gh-89013: Improve the performance of methodcaller (lazy version) (gh-107201)Pieter Eendebak2023-08-012-23/+114
|
* gh-99113: Add a What's New Entry for PEP 684 (gh-107520)Eric Snow2023-07-311-0/+40
|
* gh-105766: Document that Custom Allocators Must Be Thread-Safe (gh-107519)Eric Snow2023-07-312-0/+13
|
* gh-107306: Add a Doc Entry for Py_mod_multiple_interpreters (#107403)Eric Snow2023-07-313-0/+34
| | | It was added in 3.12 for PEP 684 (per-interpreter GIL).
* gh-107507: Replace 'The goals of Argument Clinic' with a summary (#107508)Erlend E. Aasland2023-07-311-54/+4
| | | | Summarise the goals of Argument Clinic in a single sentence. Mention that Argument Clinic was introduced with PEP-436.
* Use tstate->interp to get the interpreter state in bytecodes.c (GH-107506)Brandt Bucher2023-07-313-8/+8
|
* GH-104584: Fix incorrect uoperands (GH-107513)Brandt Bucher2023-07-312-1/+4
|
* gh-106762: Add news for `EnumMeta.__getattr__` removal (GH-107466)Jacob Walls2023-07-312-1/+5
|
* GH-104909: Move unused cache entries from uops to macros (#107444)Guido van Rossum2023-07-314-47/+31
| | | | | | There's no need to use a dummy uop to skip unused cache entries. The macro syntax lets you write `unused/1` instead. Similarly, move `unused/5` from op `_LOAD_ATTR_INSTANCE_VALUE` to macro `LOAD_ATTR_INSTANCE_VALUE`.
* gh-105578: Document that `AnyStr` is deprecated in py313 (#107116)Michael The2023-07-313-0/+22
| | | It will not be removed until Python 3.18.
* gh-105578: Add more usage examples to `typing.AnyStr` docs (#107045)Michael The2023-07-311-0/+15
| | | ``typing.AnyStr`` has different semantics to ``str | bytes``, which often leads to user confusion
* gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses ↵opavliuk2023-07-313-1/+45
| | | | | | | | | | | | | | | (#29345) Represent IPv4-mapped IPv6 address as x:x:x:x:x:x:d.d.d.d, where the 'x's are the hexadecimal values of the six high-order 16-bit pieces of the address, and the 'd's are the decimal values of the four low-order 8-bit pieces of the address (standard IPv4 representation). --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* gh-105751: Remove obsolete `object` base class in some ctypes tests (#107460)Tomas R2023-07-314-11/+11
|
* no-issue: Fix typo in import.c (gh-107498)Georg Brandl2023-07-311-1/+1
|
* gh-106368: Add test for Argument Clinic misbehaving custom converter_init() ↵Erlend E. Aasland2023-07-311-0/+20
| | | | (#107496)
* gh-104280: Add test cases for DTrace probes (#107125)Furkan Onder2023-07-311-0/+82
|
* gh-46376: Return existing pointer when possible in ctypes (#107131)Konstantin2023-07-313-0/+57
|
* Update macOS installer screens to 3.13. (GH-107475)Ned Deily2023-07-312-6/+5
|
* gh-99079: Update macOS installer to use OpenSSL 3.0.9. (GH-107474)Ned Deily2023-07-313-131/+184
|
* gh-107427: Update the description of UNPACK_SEQUENCE (gh-107429)Dong-hee Na2023-07-301-2/+3
|
* gh-106263: Fix segfault in `signaldict_repr` in `_decimal` module (#106270)Charlie Zhao2023-07-304-4/+61
| | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
* gh-104683: Argument clinic: pass `clinic` as a parameter where possible ↵Alex Waygood2023-07-291-4/+4
| | | | (#107435)
* gh-104683: Argument clinic: Make the `filename` parameter to `Clinic` ↵Alex Waygood2023-07-291-2/+1
| | | | required (#107439)
* add Kumar Aditya as CODEOWNER for import.c (#107441)Kumar Aditya2023-07-291-0/+1
|
* Fix the documentation for PyCode_New add `qualname` parameter (#107186)da-woods2023-07-291-4/+4
|
* gh-107422: Remove outdated `TypedDict` example from typing docs (#107436)Rakesh Sabale2023-07-291-3/+0
|
* Improve the GitHub issue templates (#107150)Alex Waygood2023-07-293-27/+84
| | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-104050: Argument clinic: enable mypy's `--warn-return-any` setting (#107405)Alex Waygood2023-07-292-7/+5
|
* gh-107369: optimize textwrap.indent() (#107374)Inada Naoki2023-07-293-8/+17
|
* gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386)Serhiy Storchaka2023-07-2952-139/+125
|
* gh-107091: Fix some uses of :func: role (GH-107378)Serhiy Storchaka2023-07-297-20/+20
| | | :c:func: or :c:macro: should be used instead.
* gh-107089: Improve Shelf.clear method performance (gh-107090)James Cave2023-07-293-0/+10
|
* gh-106881: Check for linux/limits.h before including it (#107397)justdan62023-07-285-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 Snow2023-07-281-0/+31
|
* gh-105699: Use a _Py_hashtable_t for the PyModuleDef Cache (gh-106974)Eric Snow2023-07-285-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 Waygood2023-07-282-18/+24
|
* gh-107305: Update the C-API Docs for PEP 684 (gh-107324)Eric Snow2023-07-282-15/+197
|
* gh-106368: Argument clinic: Fix minor bug in `state_modulename_name` (#107387)Alex Waygood2023-07-282-5/+20
|
* gh-104629: Build _testclinic extension module on Windows (#104723)Erlend E. Aasland2023-07-286-2/+169
|