summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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)