summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-108083: Don't ignore exceptions in sqlite3.Connection.__init__() and ↵Erlend E. Aasland2023-08-182-31/+77
| | | | | | | | | | | | | | .close() (#108084) - Add explanatory comments - Add return value to connection_close() for propagating errors - Always check the return value of connection_exec_stmt() - Assert pre/post state in remove_callbacks() - Don't log unraisable exceptions in case of interpreter shutdown - Make sure we're not initialized if reinit fails - Try to close the database even if ROLLBACK fails Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-108014: Add Py_IsFinalizing() function (#108032)Victor Stinner2023-08-189-9/+24
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Docs: emphasise warning and add accurate markups for sys.unraisablehook ↵Erlend E. Aasland2023-08-181-17/+21
| | | | (#108105)
* gh-107801: Improve the docs of the SEEK_* constants (#108099)Erlend E. Aasland2023-08-171-4/+14
|
* Docs: Fix Sphinx warnings in io.rst (#107903)Erlend E. Aasland2023-08-172-36/+36
| | | | | | - Mark up parameter and argument names properly - If possible, link to docs for methods like `seek`, `tell`, `write`, `read`, etc. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-107944: Improve error message for function calls with bad keyword ↵Pablo Galindo Salgado2023-08-175-11/+106
| | | | arguments (#107969)
* gh-106581: Project through calls (#108067)Guido van Rossum2023-08-1716-109/+409
| | | | This finishes the work begun in gh-107760. When, while projecting a superblock, we encounter a call to a short, simple function, the superblock will now enter the function using `_PUSH_FRAME`, continue through it, and leave it using `_POP_FRAME`, and then continue through the original code. Multiple frame pushes and pops are even possible. It is also possible to stop appending to the superblock in the middle of a called function, when running out of space or encountering an unsupported bytecode.
* gh-104683: Argument Clinic: Remove unreachable code from _module_and_class() ↵Erlend E. Aasland2023-08-171-2/+0
| | | | | | | (#108092) 'not hasattr(parent, "classes")' is always false, since 'parent' is an instance of either the Module, Class, or Clinic classes, and all of them has a "classes" attribute.
* gh-102029: Deprecate passing arguments to `_PyRLock` in `threading` (#102071)Nikita Sobolev2023-08-174-0/+38
|
* gh-105481: opcode.h is no longer generated during the build (#108080)Irit Katriel2023-08-177-72/+99
|
* Add workflow for automatic issue headers (#108054)Adam Turner2023-08-171-0/+53
| | | We don't get the "Bug report" and "Feature or enhancement" titles anymore, with the new issue forms. This brings them back!
* gh-107801: Document SEEK_HOLE and SEEK_DATA (#107936)Erlend E. Aasland2023-08-171-2/+27
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Antoine Pitrou <antoine@python.org>
* gh-105481: fix out of date comment (#108079)Irit Katriel2023-08-171-1/+1
|
* GH-108035: Remove the `_PyCFrame` struct as it is no longer needed for ↵Mark Shannon2023-08-1721-103/+66
| | | | performance. (GH-108036)
* GH-107987: Remove the Distributing Python Modules guide (#108016)Adam Turner2023-08-175-170/+16
|
* gh-107298: Fix some references in the C API documentation (GH-108072)Serhiy Storchaka2023-08-1711-20/+20
|
* gh-105539: Explict resource management for connection objects in sqlite3 ↵Erlend E. Aasland2023-08-179-387/+373
| | | | | | | | tests (#108017) - Use memory_database() helper - Move test utility functions to util.py - Add convenience memory database mixin - Add check() helper for closed connection tests
* gh-107298: Add standard exceptions and warnings in the nitpick_ignore list ↵Serhiy Storchaka2023-08-171-0/+71
| | | | (GH-108029)
* gh-106581: Split `CALL_PY_EXACT_ARGS` into uops (#107760)Guido van Rossum2023-08-1614-116/+412
| | | | | | | | | | | | * Split `CALL_PY_EXACT_ARGS` into uops This is only the first step for doing `CALL` in Tier 2. The next step involves tracing into the called code object and back. After that we'll have to do the remaining `CALL` specialization. Finally we'll have to deal with `KW_NAMES`. Note: this moves setting `frame->return_offset` directly in front of `DISPATCH_INLINED()`, to make it easier to move it into `_PUSH_FRAME`.
* gh-105481: generate op IDs from bytecode.c instead of hard coding them in ↵Irit Katriel2023-08-1621-1461/+1533
| | | | opcode.py (#107971)
* GH-92584: Remove references to Distutils in configure.rst (#108043)Adam Turner2023-08-161-11/+6
| | | Remove references to Distutils in configure.rst
* GH-92584: Remove Installing Python Modules (Distutils version) (#108020)Adam Turner2023-08-165-1090/+3
|
* GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (#108040)Adam Turner2023-08-162-4/+4
| | | Remove references to Distutils in ``PYTHONUSERBASE``
* GH-92584: Redirect macOS package installation to the PPUG (#108044)Adam Turner2023-08-161-6/+2
|
* gh-56166: Deprecate passing confusing positional arguments in re functions ↵Serhiy Storchaka2023-08-165-19/+153
| | | | | | | (#107778) Deprecate passing optional arguments maxsplit, count and flags in module-level functions re.split(), re.sub() and re.subn() as positional. They should only be passed by keyword.
* gh-107211: Fix select extension build on Solaris (#108012)Victor Stinner2023-08-161-2/+4
| | | | Export the internal _Py_open() and _Py_write() functions for Solaris: the select shared extension uses them.
* GH-92584: Remove reference to Distutils in ``cx_Freeze``'s description (#108047)Adam Turner2023-08-161-2/+2
| | | Remove reference to Distutils in ``cx_Freeze``'s description
* gh-105522: [Enum] Correctly handle possible exceptions during testing ↵Nikita Sobolev2023-08-161-54/+96
| | | | (GH-105523)
* gh-91051: fix type watcher test to be robust to existing watcher (#107989)Carl Meyer2023-08-161-6/+4
|
* Improve the feature-proposal issue form (#108033)Alex Waygood2023-08-161-12/+10
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Remove Sphinx problem matcher to avoid annotating unchanged files (#108005)Hugo van Kemenade2023-08-162-44/+0
|
* gh-107298: Fix C API Buffer documentation (#108011)Victor Stinner2023-08-163-11/+14
|
* GH-92584: Drop reference to Distutils in ``site.USER_BASE`` (#108031)Adam Turner2023-08-161-1/+1
| | | Drop reference to Distutils in ``site.USER_BASE``
* gh-104683: Argument Clinic: Extract parse function name helper (#107964)Erlend E. Aasland2023-08-162-33/+30
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-107909: Test explicit `object` base in PEP695 generic classes (#108001)Nikita Sobolev2023-08-161-0/+4
|
* gh-108000: Test that `lambda` also has `__type_params__` (#108002)Nikita Sobolev2023-08-161-7/+10
|
* gh-106659: Fix test_embed.test_forced_io_encoding() on Windows (#108010)Victor Stinner2023-08-162-1/+8
| | | Use config.legacy_windows_stdio=1 to avoid _io._WindowsConsoleIO.
* gh-106368: Argument Clinic: Test that keyword params are disallowed in ↵Erlend E. Aasland2023-08-161-0/+21
| | | | groups (#107985)
* gh-105724: Add location information to `assert` errors (GH-105935)Nikita Sobolev2023-08-164-6/+124
|
* gh-106300: Improve errors testing in test_unittest.test_runner (GH-106737)Nikita Sobolev2023-08-161-52/+65
| | | Use a custom exception to prevent unintentional silence of actual errors.
* gh-107955 Remove old comment about increasing the reference count in usage ↵brandonardenwalli2023-08-161-2/+0
| | | | of Py_None (#107993)
* gh-100061: Proper fix of the bug in the matching of possessive quantifiers ↵SKO2023-08-164-10/+17
| | | | | | | | (GH-102612) Restore the global Input Stream pointer after trying to match a sub-pattern. Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
* gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior ↵6t8k2023-08-163-0/+52
| | | | | | | | | | | | (GH-99802) Restore following CPython <= 3.10.5 behavior of shutil.make_archive() that went away as part of gh-93160: Do not create an empty archive if root_dir is not a directory, and, in that case, raise FileNotFoundError or NotADirectoryError regardless of format choice. Beyond the brought-back behavior, the function may now also raise these exceptions in dry_run mode.
* More actionable error message when spawn is incorrectly used. (#102203)Yuxin Wu2023-08-161-1/+5
| | | | Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* gh-106368: Argument Clinic: Add tests for cloned functions with custom C ↵Erlend E. Aasland2023-08-151-0/+31
| | | | base names (#107977)
* Note that lnotab_notes.txt is only valid before 3.11 (#107961)Martin DeMello2023-08-151-1/+4
|
* gh-107557: Setup abstract interpretation (#107847)Ken Jin2023-08-1521-9/+1118
| | | | Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com> Co-authored-by: Jules <57632293+juliapoo@users.noreply.github.com>
* gh-106242: Minor fixup to avoid compiler warnings (GH-107983)Steve Dower2023-08-151-1/+1
|
* gh-103082: remove assumption that INSTRUMENTED_LINE is the last instrumented ↵Irit Katriel2023-08-151-2/+2
| | | | opcode (#107978)
* gh-106242: Fix path truncation in os.path.normpath (GH-106816)Finn Womack2023-08-155-9/+30
|