Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 94b7244

Browse filesBrowse files
committed
Bump version to 0.31.0
1 parent 439de50 commit 94b7244
Copy full SHA for 94b7244

11 files changed

+34-11Lines changed: 34 additions & 11 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/source/history.rst‎

Copy file name to clipboardExpand all lines: docs/source/history.rst
+33Lines changed: 33 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ Release history
55

66
.. towncrier release notes start
77
8+
Trio 0.31.0 (2025-09-09)
9+
------------------------
10+
11+
Features
12+
~~~~~~~~
13+
14+
- :exc:`Cancelled` strings can now display the source and reason for a cancellation. Trio-internal sources of cancellation will set this string, and :meth:`CancelScope.cancel` now has a ``reason`` string parameter that can be used to attach info to any :exc:`Cancelled` to help in debugging. (`#3232 <https://github.com/python-trio/trio/issues/3232>`__)
15+
16+
17+
Bugfixes
18+
~~~~~~~~
19+
20+
- Make ctrl+c work in more situations in the Trio REPL (``python -m trio``). (`#3007 <https://github.com/python-trio/trio/issues/3007>`__)
21+
- Allow pickling `trio.Cancelled`, as they can show up when you want to pickle something else. This does not rule out pickling other ``NoPublicConstructor`` objects -- create an issue if necessary. (`#3248 <https://github.com/python-trio/trio/issues/3248>`__)
22+
- Decrease import time on Windows by around 10%. (`#3263 <https://github.com/python-trio/trio/issues/3263>`__)
23+
- Handle unwrapping SystemExit/KeyboardInterrupt exception gracefully in utility function ``raise_single_exception_from_group`` that reraises last exception from group. (`#3275 <https://github.com/python-trio/trio/issues/3275>`__)
24+
- Ensure that the DTLS server does not mutate SSL context. (`#3277 <https://github.com/python-trio/trio/issues/3277>`__)
25+
- Avoid having `trio.as_safe_channel` raise if closing the generator wrapped
26+
`GeneratorExit` in a `BaseExceptionGroup`. (`#3324 <https://github.com/python-trio/trio/issues/3324>`__)
27+
28+
29+
Deprecations and removals
30+
~~~~~~~~~~~~~~~~~~~~~~~~~
31+
32+
- Implement ``bool(trio.Event)`` and have it raise a `DeprecationWarning` and tell users to use `trio.Event.is_set` instead. This is an alternative to ``mypy --enable-error-code=truthy-bool`` for users who don't use type checking. (`#3322 <https://github.com/python-trio/trio/issues/3322>`__)
33+
34+
35+
Miscellaneous internal changes
36+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37+
38+
- When misnesting nurseries you now get a helpful :exc:`RuntimeError` instead of a catastrophic :exc:`TrioInternalError`. (`#3307 <https://github.com/python-trio/trio/issues/3307>`__)
39+
40+
841
Trio 0.30.0 (2025-04-20)
942
------------------------
1043

Collapse file

‎newsfragments/3007.bugfix.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3007.bugfix.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3232.feature.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3232.feature.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3248.bugfix.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3248.bugfix.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3263.bugfix.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3263.bugfix.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3275.bugfix.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3275.bugfix.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3277.bugfix.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3277.bugfix.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3307.misc.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3307.misc.rst
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3322.deprecated.txt‎

Copy file name to clipboardExpand all lines: newsfragments/3322.deprecated.txt
-1Lines changed: 0 additions & 1 deletion
This file was deleted.
Collapse file

‎newsfragments/3324.bugfix.rst‎

Copy file name to clipboardExpand all lines: newsfragments/3324.bugfix.rst
-2Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.