summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-107735: Move just added C API tests to better place (GH-107743)Serhiy Storchaka2023-08-071-40/+40
|
* gh-86457: Fix signature for code.replace() (GH-23199)Serhiy Storchaka2023-08-074-173/+178
| | | | Also add support of @text_signature in Argument Clinic.
* gh-107735: Add C API tests for PySys_GetObject() and PySys_SetObject() ↵Serhiy Storchaka2023-08-072-0/+84
| | | | (GH-107736)
* gh-107630: Initialize Each Interpreter's refchain Properly (gh-107733)Eric Snow2023-08-074-1/+25
| | | This finishes fixing the crashes in Py_TRACE_REFS builds. We missed this part in gh-107567.
* gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179)Serhiy Storchaka2023-08-0713-297/+2174
| | | | | | | | | | Cover all the Mapping Protocol, almost all the Sequence Protocol (except PySequence_Fast) and a part of the Object Protocol. Move existing tests to Lib/test/test_capi/test_abstract.py and Modules/_testcapi/abstract.c. Add also tests for PyDict C API.
* gh-107715: Escape class name in regular expression (GH-107716)Gertjan van Zwieten2023-08-072-1/+2
| | | | | | | | | This patch escapes the class name before embedding it in the regular expression for `pat` in `doctest.DocTestFinder._find_lineno`. While class names do not ordinarily contain special characters, it is possible to encounter these when a class is created dynamically. Escaping the name will correctly return `None` in this scenario, rather than potentially matching a different class or raising `re.error` depending on the symbols used.
* gh-106566: Optimize (?!) in regular expressions (GH-106567)Serhiy Storchaka2023-08-073-1/+7
|
* gh-100814: Fix exception for invalid callable value of Tkinter image option ↵Serhiy Storchaka2023-08-073-4/+18
| | | | | | | (GH-107692) Passing a callable object as an option value to a Tkinter image now raises the expected TclError instead of an AttributeError.
* gh-95065: Argument Clinic: Pretty-print long C strings in generated code ↵Erlend E. Aasland2023-08-072-61/+199
| | | | | (#107712) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107710: Speed up `logging.getHandlerNames` function (#107711)Nikita Sobolev2023-08-072-2/+2
|
* gh-107713: Reduce usage of mocks in `test_clinic.py` (#107714)Alex Waygood2023-08-072-87/+22
|
* Docs: Fix more Sphinx annotations in ctypes.rst (#107708)Erlend E. Aasland2023-08-073-43/+44
|
* 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.