You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/history.rst
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,44 @@ Release history
5
5
6
6
.. towncrier release notes start
7
7
8
+
Trio 0.26.0 (2024-07-05)
9
+
------------------------
10
+
11
+
Features
12
+
~~~~~~~~
13
+
14
+
- Added an interactive interpreter ``python -m trio``.
15
+
16
+
This makes it easier to try things and experiment with trio in the a Python repl.
17
+
Use the ``await`` keyword without needing to call ``trio.run()``
18
+
19
+
.. code-block:: console
20
+
21
+
$ python -m trio
22
+
Trio 0.21.0+dev, Python 3.10.6
23
+
Use "await" directly instead of "trio.run()".
24
+
Type "help", "copyright", "credits" or "license" for more information.
25
+
>>> import trio
26
+
>>> await trio.sleep(1); print("hi") # prints after one second
27
+
hi
28
+
29
+
See :ref:`interactive debugging` for further detail. (`#2972 <https://github.com/python-trio/trio/issues/2972>`__)
30
+
- :class:`trio.testing.RaisesGroup` can now catch an unwrapped exception with ``unwrapped=True``. This means that the behaviour of :ref:`except* <except_star>` can be fully replicated in combination with ``flatten_subgroups=True`` (formerly ``strict=False``). (`#2989 <https://github.com/python-trio/trio/issues/2989>`__)
31
+
32
+
33
+
Bugfixes
34
+
~~~~~~~~
35
+
36
+
- Fixed a bug where :class:`trio.testing.RaisesGroup(..., strict=False) <trio.testing.RaisesGroup>` would check the number of exceptions in the raised `ExceptionGroup` before flattening subgroups, leading to incorrectly failed matches.
37
+
It now properly supports end (``$``) regex markers in the ``match`` message, by no longer including " (x sub-exceptions)" in the string it matches against. (`#2989 <https://github.com/python-trio/trio/issues/2989>`__)
38
+
39
+
40
+
Deprecations and removals
41
+
~~~~~~~~~~~~~~~~~~~~~~~~~
42
+
43
+
- Deprecated ``strict`` parameter from :class:`trio.testing.RaisesGroup`, previous functionality of ``strict=False`` is now in ``flatten_subgroups=True``. (`#2989 <https://github.com/python-trio/trio/issues/2989>`__)
0 commit comments