summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* #gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117)Matthieu Caneill2024-02-063-3/+15
|
* gh-112529: Stop the world around gc.get_referents (#114823)Sam Gross2024-02-061-13/+28
| | | | | | | We do not want to add locking in `tp_traverse` slot implementations. Instead, stop the world when calling `gc.get_referents`. Note that the the stop the world call is a no-op in the default build. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-112087: Make list_{count, index, contains} to be thread-safe. (gh-114916)Donghee Na2024-02-061-19/+33
|
* gh-112066: Add `PyDict_SetDefaultRef` function. (#112123)Sam Gross2024-02-067-20/+160
| | | | | | | The `PyDict_SetDefaultRef` function is similar to `PyDict_SetDefault`, but returns a strong reference through the optional `**result` pointer instead of a borrowed reference. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-114756: Update FAQ section on removing the GIL (#114957)da-woods2024-02-061-23/+29
| | | | | Update FAQ section on removing the GIL to reflect recent progress on PEP 703 and PEP 684. Co-authored-by: AN Long <aisk@users.noreply.github.com>
* gh-106233: Fix stacklevel in zoneinfo.InvalidTZPathWarning (GH-106234)Nikita Sobolev2024-02-063-11/+32
|
* gh-91602: Add iterdump() support for filtering database objects (#114501)Mariusz Felisiak2024-02-0611-17/+176
| | | | | | Add optional 'filter' parameter to iterdump() that allows a "LIKE" pattern for filtering database objects to dump. Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (#115038)Seth Michael Larson2024-02-062-35/+37
|
* gh-115009: Update macOS installer to use SQLite 3.45.1 (#115066)Erlend E. Aasland2024-02-062-3/+4
| | | Co-authored-by: Ned Deily <nad@python.org>
* GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` ↵Barney Gale2024-02-062-18/+18
| | | | | | | | | | | | (#115056) When expanding `**` wildcards, ensure we add a trailing slash to the topmost directory path. This matches `glob.glob()` behaviour: >>> glob.glob('dirA/**', recursive=True) ['dirA/', 'dirA/dirB', 'dirA/dirB/dirC'] This does not affect `pathlib.Path.glob()`, because trailing slashes aren't supported in pathlib proper.
* gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.13. (#115050)Ned Deily2024-02-064-6/+9
| | | Also update multissltests to use 1.1.1w, 3.0.13, 3.1.5, and 3.2.1.
* gh-109991: Update macOS installer to use OpenSSL 3.0.13. (GH-115052)Ned Deily2024-02-062-3/+4
|
* gh-109991: Update Windows build to use OpenSSL 3.0.13 (#115043)Zachary Ware2024-02-053-4/+5
|
* gh-83648: Support deprecation of options, arguments and subcommands in ↵Serhiy Storchaka2024-02-055-27/+262
| | | | argparse (GH-114086)
* gh-114944: Fix race between `_PyParkingLot_Park` and ↵mpage2024-02-052-2/+3
| | | | | | | | | | | | | | | | | | | | | `_PyParkingLot_UnparkAll` when handling interrupts (#114945) Fix race between `_PyParkingLot_Park` and `_PyParkingLot_UnparkAll` when handling interrupts There is a potential race when `_PyParkingLot_UnparkAll` is executing in one thread and another thread is unblocked because of an interrupt in `_PyParkingLot_Park`. Consider the following scenario: 1. Thread T0 is blocked[^1] in `_PyParkingLot_Park` on address `A`. 2. Thread T1 executes `_PyParkingLot_UnparkAll` on address `A`. It finds the `wait_entry` for `T0` and unlinks[^2] its list node. 3. Immediately after (2), T0 is woken up due to an interrupt. It then segfaults trying to unlink[^3] the node that was previously unlinked in (2). To fix this we mark each waiter as unparking before releasing the bucket lock. `_PyParkingLot_Park` will wait to handle the coming wakeup, and not attempt to unlink the node, when this field is set. `_PyParkingLot_Unpark` does this already, presumably to handle this case.
* gh-82626: Emit a warning when bool is used as a file descriptor (GH-111275)Serhiy Storchaka2024-02-0511-0/+75
|
* gh-115015: Argument Clinic: fix generated code for METH_METHOD methods ↵Erlend E. Aasland2024-02-0530-68/+153
| | | | without params (#115016)
* gh-109475: Fix support of explicit option value "--" in argparse (GH-114814)Serhiy Storchaka2024-02-053-1/+19
| | | For example "--option=--".
* gh-114967: Fix "Built-in Exceptions" documentation ambiguous wording (#114968)HarryLHW2024-02-051-1/+1
| | | | | | Change the somewhat vague "listed below" to "listed in this chapter" in Doc/library/exceptions.rst. The exceptions are listed in multiple sections after two intermediate sections. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-112075: Add gc shared bits (#114931)Dino Viehland2024-02-051-0/+17
| | | Add GC shared flags for objects to the GC bit states in free-threaded builds
* GH-108362: Incremental GC implementation (GH-108038)Mark Shannon2024-02-0513-392/+647
|
* gh-43457: Tkinter: fix design flaws in wm_attributes() (GH-111404)Serhiy Storchaka2024-02-056-21/+106
| | | | | | | | | * When called with a single argument to get a value, it allow to omit the minus prefix. * It can be called with keyword arguments to set attributes. * w.wm_attributes(return_python_dict=True) returns a dict instead of a tuple (it will be the default in future). * Setting wantobjects to 0 no longer affects the result.
* GH-113462: Limit the number of versions that a single class can use. (GH-114900)Mark Shannon2024-02-054-1/+22
|
* gh-115026: Argument Clinic: handle PyBuffer_FillInfo errors in generated ↵Nikita Sobolev2024-02-054-10/+24
| | | | code (#115027)
* gh-115020: Remove a debugging print in test_frame (GH-115021)Kirill Podoprigora2024-02-051-1/+0
|
* Remove bogus syntax error marker in csv doc (#115017)Terry Jan Reedy2024-02-051-1/+0
|
* gh-114628: Display csv.Error without context (#115005)Terry Jan Reedy2024-02-052-2/+4
| | | | | When cvs.Error is raised when TypeError is caught, the TypeError display and 'During handling' note is just noise with duplicate information. Suppress with 'from None'.
* gh-114099: Add test exclusions to support running the test suite on iOS ↵Russell Keith-Magee2024-02-0531-150/+224
| | | | | | | | | | | | | (#114889) Add test annotations required to run the test suite on iOS (PEP 730). The majority of the change involve annotating tests that use subprocess, but are skipped on Emscripten/WASI for other reasons, and including iOS/tvOS/watchOS under the same umbrella as macOS/darwin checks. `is_apple` and `is_apple_mobile` test helpers have been added to identify *any* Apple platform, and "any Apple platform except macOS", respectively.
* gh-114392: Improve test_capi.test_structmembers (GH-114393)Serhiy Storchaka2024-02-041-124/+93
| | | | | | Test all integer member types with extreme values and values outside of the valid range. Test support of integer-like objects. Test warnings for wrapped out values.
* gh-114685: PyBuffer_FillInfo() now raises on PyBUF_{READ,WRITE} (GH-114802)Nikita Sobolev2024-02-044-5/+56
|
* gh-113803: Fix inaccurate documentation for shutil.move when dst is an ↵Dai Wentao2024-02-042-16/+19
| | | | | | existing directory (#113837) * fix the usage of dst and destination in shutil.move doc * update shutil.move doc
* gh-114388: Fix an error in GH-114391 (GH-115000)Serhiy Storchaka2024-02-041-0/+2
|
* gh-113951: Tkinter: "tag_unbind(tag, sequence, funcid)" now only unbinds ↵Serhiy Storchaka2024-02-043-11/+117
| | | | | | | | | | | "funcid" (GH-113955) Previously, "tag_unbind(tag, sequence, funcid)" methods of Text and Canvas widgets destroyed the current binding for "sequence", leaving "sequence" unbound, and deleted the "funcid" command. Now they remove only "funcid" from the binding for "sequence", keeping other commands, and delete the "funcid" command. They leave "sequence" unbound only if "funcid" was the last bound command.
* gh-114388: Fix warnings when assign an unsigned integer member (GH-114391)Serhiy Storchaka2024-02-043-28/+97
| | | | | | | * Fix a RuntimeWarning emitted when assign an integer-like value that is not an instance of int to an attribute that corresponds to a C struct member of type T_UINT and T_ULONG. * Fix a double RuntimeWarning emitted when assign a negative integer value to an attribute that corresponds to a C struct member of type T_UINT.
* gh-113280: Always close socket if SSLSocket creation failed (GH-114659)Serhiy Storchaka2024-02-043-64/+78
| | | Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* gh-113267: Revert "gh-106584: Fix exit code for unittest in Python 3.12 ↵Serhiy Storchaka2024-02-045-16/+14
| | | | | | (#106588)" (GH-114470) This reverts commit 8fc071345b50dd3de61ebeeaa287ccef21d061b2.
* gh-69893: Add the close() method for xml.etree.ElementTree.iterparse() ↵Serhiy Storchaka2024-02-045-4/+105
| | | | iterator (GH-114534)
* gh-83383: Always mark the dbm.dumb database as unmodified after open() and ↵Serhiy Storchaka2024-02-043-1/+80
| | | | | | | | sync() (GH-114560) The directory file for a newly created database is now created immediately after opening instead of deferring this until synchronizing or closing.
* gh-114071: [Enum] update docs and code for tuples/subclasses (GH-114871)Ethan Furman2024-02-044-5/+69
| | | | | | | | | | | | | | | | | | | | | | | Update documentation with `__new__` and `__init__` entries. Support use of `auto()` in tuple subclasses on member assignment lines. Previously, auto() was only supported on the member definition line either solo or as part of a tuple: RED = auto() BLUE = auto(), 'azul' However, since Python itself supports using tuple subclasses where tuples are expected, e.g.: from collections import namedtuple T = namedtuple('T', 'first second third') def test(one, two, three): print(one, two, three) test(*T(4, 5, 6)) # 4 5 6 it made sense to also support tuple subclasses in enum definitions.
* gh-101100: Fix dangling references in pickle.rst (#114972)Skip Montanaro2024-02-042-26/+26
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-101100: Fix Sphinx warnings from PEP 3108 stdlib re-organisation (#114327)Hugo van Kemenade2024-02-048-90/+90
| | | | | | | | | | | | | | | | | | | * Fix Sphinx warnings from PEP 3108 stdblib re-organisation * Apply suggestions from code review Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Update Doc/whatsnew/2.2.rst Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> * Apply suggestions from code review Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Update README.md (#114974)Skip Montanaro2024-02-041-1/+1
| | | | | Trivial edit Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-114883: Fix Makefile dependency tree for non-jit builds (GH-114884)Zachary Ware2024-02-033-1/+17
|
* gh-114803: Mention that `@dataclass` should not be applied on enums (GH-114891)Nikita Sobolev2024-02-031-1/+18
| | | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-101100: Fix Sphinx reference warnings in the glossary (#114729)Skip Montanaro2024-02-031-3/+5
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-114965: Updated bundled pip to 24.0 (gh-114966)Stéphane Bidoul2024-02-034-15/+16
| | | Updated bundled pip to 24.0
* gh-114887 Reject only sockets of type SOCK_STREAM in ↵Travis Howse2024-02-033-3/+5
| | | | | | | create_datagram_endpoint() (#114893) Also improve exception message. Co-authored-by: Donghee Na <donghee.na92@gmail.com>
* gh-112202: Ensure that condition.notify() succeeds even when racing with ↵Kristján Valur Jónsson2024-02-034-52/+165
| | | | | Task.cancel() (#112201) Also did a general cleanup of asyncio locks.py comments and docstrings.
* gh-114959: tarfile: do not ignore errors when extract a directory on top of ↵Serhiy Storchaka2024-02-035-1/+220
| | | | | | a file (GH-114960) Also, add tests common to tarfile and zipfile.
* gh-114955: Add clear to MutableSequence's mixin methods in document (gh-114956)AN Long2024-02-031-2/+2
|