summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-85160: Reduce memory usage of `singledispatchmethod` (#107706)Alex Waygood2023-08-071-5/+5
| | | | | A small followup to #107148 Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-95065: Add Argument Clinic support for deprecating positional use of ↵Erlend E. Aasland2023-08-075-14/+1153
| | | | | | | | | | parameters (#95151) It is now possible to deprecate passing parameters positionally with Argument Clinic, using the new '* [from X.Y]' syntax. (To be read as "keyword-only from Python version X.Y") Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-104496: Use correct Tcl or Tk version in Tkinter tests (GH-107688)Serhiy Storchaka2023-08-077-39/+30
| | | In future Tcl and Tk versions can be desynchronized.
* gh-107442: Document all valid types for ctypes _as_parameter_ (#107443)Tomas R2023-08-071-3/+4
|
* Docs: Argument Clinic: Move the CConverter class to the reference (#107671)Erlend E. Aasland2023-08-071-64/+69
|
* Improve cross-references in `runpy` docs (#107673)Kamil Turek2023-08-061-12/+13
| | | | - Add links to `__main__` and `sys.path` where appropriate - Ensure each paragraph never has more than one link to the same thing, to avoid visual clutter from too many links
* gh-106368: Improve coverage reports for argument clinic (#107693)Alex Waygood2023-08-063-6/+20
|
* Do not use deprecated ``logger.warn()`` in pyspecific (#107694)Adam Turner2023-08-061-3/+3
|
* gh-85160: improve performance of `functools.singledispatchmethod` (#107148)Pieter Eendebak2023-08-063-2/+90
| | | | Co-authored-by: mental <m3nta1@yahoo.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Docs: skip python-docs-theme 2023.7 to fix mobile menu (#107666)Hugo van Kemenade2023-08-061-1/+1
|
* Docs: Fix Sphinx annotations in Doc/library/ctypes.rst (#107672)Erlend E. Aasland2023-08-062-32/+35
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-84435: Make pyspecific directives translatable (#19470)cocoatomo2023-08-061-10/+8
| | | | | Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
* gh-104683: Improve consistency and test coverage of argument-clinic ↵Alex Waygood2023-08-053-13/+108
| | | | `__repr__` functions (#107667)
* Docs: Argument Clinic: Improve 'How to write a custom converter' (#107328)Erlend E. Aasland2023-08-051-24/+26
| | | | | | - Omit unneccesary wording and sentences - Don't mention implementation details (no digression, explanation) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* gh-107662: Switch 'any' and 'anext' in functions.rst (#107663)Terry Jan Reedy2023-08-051-2/+2
| | | Order was reversed in index at top, not in body.
* 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
|