pypi / trio
trio
What changed in trio 0.32 to 0.35, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
3 breaking2 deprecations1 new APIs and options3 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittrio 0.356 changes
Breaking changes 1
Trio consistently encodes all hostnames using IDNA 2008.
Fixes and other changes 5
Trio avoids erroring on CPython built for an Android API version less than 24.
Typing is now consistent about what async-file-objects exposes, based on what the underlying object exposes.
Trio now supports Python 3.15.
notify_closing now works on events that have been deleted, including events registered as one shot events.
On Linux, trio.Process no longer emits an EncodingWarning when Python runs with -X warn_default_encoding or PYTHONWARNDEFAULTENCODING=1.
trio 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.
trio 0.324 changes
Breaking changes 1
Support for Python 3.9 has been dropped.
Behavior and default changes 1
CapacityLimiter can now have zero total_tokens.
Fixes and other changes 2
Iterating over an @as_safe_channel-derived ReceiveChannel now shuts down cleanly if another task closes the channel.
iter_await_frames now works on completed tasks, returning an empty list of frames if the underlying coroutine has been closed.