unstale

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 init

@unstale/cli 0.3.1 on npm

trio 0.356 changes

Breaking changes 1

  • Trio consistently encodes all hostnames using IDNA 2008.

    0.35.0release notes

Fixes and other changes 5

  • Trio avoids erroring on CPython built for an Android API version less than 24.

    0.35.0release notes

  • Typing is now consistent about what async-file-objects exposes, based on what the underlying object exposes.

    0.35.0release notes

  • Trio now supports Python 3.15.

    0.35.0release notes

  • notify_closing now works on events that have been deleted, including events registered as one shot events.

    0.35.0release notes

  • On Linux, trio.Process no longer emits an EncodingWarning when Python runs with -X warn_default_encoding or PYTHONWARNDEFAULTENCODING=1.

    0.35.0release notes

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.

    0.34.0release notes

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.

    0.34.0release notes

Behavior and default changes 1

  • Adds support for Python 3.15 beta 4; this support may break in the future as things change.

    0.34.0release notes

Fixes and other changes 4

  • Preserves the __cause__ and __context__ of exceptions raised before task_status.started() is called.

    0.34.0release notes

  • Corrects the error message for the stdout pipe check, which incorrectly said stdin.

    0.34.0release notes

  • Fixes behavior on Python 3.14+ to avoid the deprecated pathlib.PurePath.as_uri() path.

    0.34.0release notes

  • Fixes workers leaking the spawner's Context on py314t+ free-threaded builds.

    0.34.0release notes

trio 0.333 changes

Deprecations 2

Behavior and default changes 1

  • Trio now supports Android's new sys.platform value.

    0.33.0release notes

trio 0.324 changes

Breaking changes 1

Behavior and default changes 1

  • CapacityLimiter can now have zero total_tokens.

    0.32.0release notes

Fixes and other changes 2

  • Iterating over an @as_safe_channel-derived ReceiveChannel now shuts down cleanly if another task closes the channel.

    0.32.0release notes

  • iter_await_frames now works on completed tasks, returning an empty list of frames if the underlying coroutine has been closed.

    0.32.0release notes