-
-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2845 from gschaffner/fix-start-nursery-implementa…
…tion-detail-hiding Fix regressions introduced when hiding `Nursery.start` implementation-detail nursery
- Loading branch information
Showing
3 changed files
with
74 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
With ``strict_exception_groups=True``, when you ran a function in a nursery which raised an exception before calling ``task_status.started()``, it previously got wrapped twice over in ``ExceptionGroup`` in some cases. It no longer does that, and also won't wrap any ``ExceptionGroup`` raised by the function itself. | ||
When a starting function raises before calling :func:`trio.TaskStatus.started`, | ||
:func:`trio.Nursery.start` will no longer wrap the exception in an undocumented | ||
:exc:`ExceptionGroup`. Previously, :func:`trio.Nursery.start` would incorrectly | ||
raise an :exc:`ExceptionGroup` containing it when using ``trio.run(..., | ||
strict_exception_groups=True)``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters