summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GH-106684: raise `ResourceWarning` when `asyncio.StreamWriter` is not closed ↵Kumar Aditya2023-08-053-0/+30
| | | | (#107650)
* gh-107432 Fix incorrect indentation in annotations HOWTO (#107445)Daniele Procida2023-08-051-163/+163
| | | | | | gh-107432 Fix incorrect indentation in annotations document Body text in https://docs.python.org/3/howto/annotations.html was indented throughout, and was being rendered in blockquote elements.
* gh-106812: Fix two tiny bugs in analysis.py (#107649)Guido van Rossum2023-08-051-1/+3
| | | | | | This fixes two tiny defects in analysis.py that I didn't catch on time in #107564: - `get_var_names` in `check_macro_consistency` should skip `UNUSED` names. - Fix an occurrence of `is UNUSED` (should be `==`).
* gh-106608: make uop trace variable length (#107531)Ivin Lee2023-08-054-15/+7
| | | Executors are now more like tuples.
* GH-84436: Skip refcounting for known immortals (GH-107605)Brandt Bucher2023-08-0419-65/+52
|
* GH-70303: Emit FutureWarning when pathlib glob pattern ends with `**` ↵Barney Gale2023-08-044-3/+30
| | | | | | (GH-105413) In a future Python release, patterns with this ending will match both files and directories. Users may add a trailing slash to remove the warning.
* gh-106368: Argument clinic: improve coverage for `self.valid_line()` calls ↵Alex Waygood2023-08-042-3/+33
| | | | (#107641)
* Docs: Only include Plausible for html, not for epub etc (#107637)Hugo van Kemenade2023-08-041-1/+3
| | | Only include Plausible for html, not for epub etc
* gh-104683: Argument Clinic: Use CConverter.length_name where possible (#107638)Erlend E. Aasland2023-08-041-15/+15
| | | | | Also make it a cached property. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106812: Refactor cases_generator to allow uops with array stack effects ↵Guido van Rossum2023-08-0412-1098/+1798
| | | | | (#107564) Introducing a new file, stacking.py, that takes over several responsibilities related to symbolic evaluation of push/pop operations, with more generality.
* gh-104146: Argument clinic: remove dead code highlighted by the `vulture` ↵Alex Waygood2023-08-041-15/+11
| | | | tool (#107632)
* gh-107600: Docs: Update ctypes.ArgumentError error message (#107601)Tomas R2023-08-041-2/+2
|
* Docs: upgrade to python-docs-theme 2023.7 (#107617)Hugo van Kemenade2023-08-041-2/+2
|
* gh-104146: Argument clinic: Remove dead code flagged by mypy's `truthy-bool` ↵Alex Waygood2023-08-042-7/+3
| | | | check (#107627)
* gh-107614: Normalise Argument Clinic error messages (#107615)Erlend E. Aasland2023-08-042-122/+179
| | | | | | | | - always wrap the offending line, token, or name in quotes - in most cases, put the entire error message on one line Added tests for uncovered branches that were touched by this PR. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Add some GC stats to Py_STATS (GH-107581)Mark Shannon2023-08-045-1/+80
|
* GH-107263: Increase C stack limit for most functions, except ↵Mark Shannon2023-08-0421-45/+57
| | | | | | `_PyEval_EvalFrameDefault()` (GH-107535) * Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2.
* gh-106368: Increase Argument Clinic test coverage (#107611)Erlend E. Aasland2023-08-041-0/+296
| | | Add tests for directives and destinations
* gh-107609: Fix duplicate module check in Argument Clinic (#107610)Erlend E. Aasland2023-08-044-3/+15
| | | Also remove duplicate module def from _testcapi.
* GH-105481: Mark more files as generated (GH-107598)Brandt Bucher2023-08-041-0/+2
|
* gh-104146: Argument clinic: remove unused methods and variables (#107608)Alex Waygood2023-08-042-23/+5
|
* gh-106368: Argument clinic tests: improve error message when ↵Alex Waygood2023-08-031-1/+2
| | | | `expect_success()` fails (#107606)
* gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567)Eric Snow2023-08-036-29/+62
| | | The linked list of objects was a global variable, which broke isolation between interpreters, causing crashes. To solve this, we've moved the linked list to each interpreter.
* gh-107446: Fix test_inspect.test_class_with_method_from_other_module when ↵Tian Gao2023-08-031-0/+3
| | | | | ran multiple times (#107451) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-107576: Ensure `__orig_bases__` are our own in `get_original_bases` (#107584)James Hilton-Balfe2023-08-033-7/+20
| | | | Co-authored-by: Chris Bouchard <chris@upliftinglemma.net> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-107077: Raise SSLCertVerificationError even if the error is set via ↵Pablo Galindo Salgado2023-08-032-0/+10
| | | | | | SSL_ERROR_SYSCALL (#107586) Co-authored-by: T. Wouters <thomas@python.org>
* gh-106368: Increase Argument Clinic test coverage (#107582)Erlend E. Aasland2023-08-032-2/+394
| | | Add tests for DSL parser state machine and docstring formatting
* GH-107458: fix test_tools refleak (#107577)Kumar Aditya2023-08-031-11/+5
|
* gh-107455: ctypes: Improve error messages when converting to an incompatible ↵Tomas R2023-08-033-11/+62
| | | | type (#107456)
* gh-104683: Rework Argument Clinic error handling (#107551)Erlend E. Aasland2023-08-032-298/+270
| | | | | | | | | | | | Introduce ClinicError, and use it in fail(). The CLI runs main(), catches ClinicError, formats the error message, prints to stderr and exits with an error. As a side effect, this refactor greatly improves the accuracy of reported line numbers in case of error. Also, adapt the test suite to work with ClinicError. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-107471: Fix Refleaks in test_import (gh-107569)Eric Snow2023-08-022-1/+3
| | | | | | | gh-107184 introduced a refleak in test_import.SubinterpImportTests (specifically test_singlephase_check_with_setting_and_override and test_single_init_extension_compat). We fix it here by making sure _testsinglephase is removed from sys.modules whenever we clear the runtime's internal state for the module. The underlying problem is strictly contained in the internal function _PyImport_ClearExtension() (AKA _testinternalcapi.clear_extension()), which is only used in tests. (This also fixes an intermittent segfault introduced in the same place, in test_disallowed_reimport.)
* gh-104683: Make Argument Clinic template strings class level members (#107556)Erlend E. Aasland2023-08-021-71/+69
| | | | | The motivation for this change is to clean up the output_templates() method a little bit, as it accounts for ~10% of the lines of code in clinic.py; removing some clutter helps readability.
* Fix test_capi.test_misc when run with -R:: (#107566)Guido van Rossum2023-08-021-30/+34
| | | | | | | Should fix the buildbot failures. This creates a new function each time that test is run, like Victor did for other tests.
* GH-100964: Break cycles involving exception state when returning from ↵Mark Shannon2023-08-023-5/+7
| | | | generator (GH-107563)
* gh-105481: simplify definition of pseudo ops in Lib/opcode.py (#107561)Irit Katriel2023-08-025-40/+23
|
* gh-106368: Increase test coverage for Argument Clinic (#107514)Erlend E. Aasland2023-08-022-15/+350
| | | As per this commit, we've got approx. ~91% test coverage for clinic.py.
* 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
|