Skip to content

Commit e2e0521

Browse files
committed
Bump version to 0.26.0
1 parent e813d15 commit e2e0521

File tree

6 files changed

+39
-21
lines changed

6 files changed

+39
-21
lines changed

docs/source/history.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,44 @@ Release history
55

66
.. towncrier release notes start
77
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>`__)
44+
45+
846
Trio 0.25.1 (2024-05-16)
947
------------------------
1048

newsfragments/2972.feature.rst

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

newsfragments/2989.bugfix.rst

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

newsfragments/2989.deprecated.rst

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

newsfragments/2989.feature.rst

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

src/trio/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This file is imported from __init__.py and parsed by setuptools
22

3-
__version__ = "0.25.1+dev"
3+
__version__ = "0.26.0"

0 commit comments

Comments
 (0)