pypi / trio
trio
What changed in trio 0.33 to 0.34, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
1 breaking2 deprecations1 new APIs and options2 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittrio 0.347 changes
Breaking changes 1
Using absolute deadlines on a cancel scope constructed with a relative deadline now raises; replace the CancelScope object to switch it from relative to absolute.
New APIs and options 1
Adds a field reporting the largest number of items ever held in the channel buffer, helping developers choose a sensible max_buffer_size based on real runs.
Behavior and default changes 1
Adds support for Python 3.15 beta 4; this support may break in the future as things change.
Fixes and other changes 4
Preserves the __cause__ and __context__ of exceptions raised before task_status.started() is called.
Corrects the error message for the stdout pipe check, which incorrectly said stdin.
Fixes behavior on Python 3.14+ to avoid the deprecated pathlib.PurePath.as_uri() path.
Fixes workers leaking the spawner's Context on py314t+ free-threaded builds.
trio 0.333 changes
Deprecations 2
Deprecated in favor of pytest.RaisesExc.
Deprecated in favor of pytest.RaisesGroup.
Behavior and default changes 1
Trio now supports Android's new sys.platform value.