Skip to content

Commit 94b7244

Browse files
committed
Bump version to 0.31.0
1 parent 439de50 commit 94b7244

File tree

11 files changed

+34
-11
lines changed

11 files changed

+34
-11
lines changed

docs/source/history.rst

Lines changed: 33 additions & 0 deletions
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

newsfragments/3007.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3232.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3248.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3263.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3275.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3277.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3307.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3322.deprecated.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/3324.bugfix.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)