Revisions of python-trio
buildservice-autocommit
accepted
request 1160629
from
Matej Cepl (mcepl)
(revision 46)
baserev update by copy to link target
Matej Cepl (mcepl)
accepted
request 1160593
from
Markéta Machová (mcalabkova)
(revision 45)
- Update to 0.25.0 * New helper classes: RaisesGroup and Matcher. * MultiError has been fully removed, and all relevant trio functions now raise ExceptionGroups instead. * The strict_exception_groups parameter now defaults to True in trio.run and trio.lowlevel.start_guest_run. * Add trio.testing.wait_all_threads_completed, which blocks until no threads are running tasks. * Path is now a subclass of pathlib.PurePath, allowing it to interoperate with other standard pathlib types.
buildservice-autocommit
accepted
request 1138213
from
Steve Kowalik (StevenK)
(revision 44)
baserev update by copy to link target
Steve Kowalik (StevenK)
accepted
request 1138103
from
Benjamin Greiner (bnavigator)
(revision 43)
- We don't need isort for the tests: Avoid it for Ring1 - Clean dependencies
Daniel Garcia (dgarcia)
committed
(revision 42)
- Run tests with --pyargs
Dirk Mueller (dirkmueller)
committed
(revision 41)
- update to 0.23.2: * TypeVarTuple is now used to fully type :meth:`nursery.start_soon() <trio.Nursery.start_soon>`, :func:`trio.run()`, :func:`trio.to_thread.run_sync()`, and other similar functions accepting (func, *args). This means type checkers will be able to verify types are used correctly. :meth:`nursery.start() <trio.Nursery.start>` is not fully typed yet however. (#2881) * Make pyright recognize :func:`open_memory_channel` as generic. (#2873) backlink Unknown interpreted text role "func". * Make pyright recognize :func:`open_memory_channel` as generic. * Unknown interpreted text role "func". * Moved the metadata into PEP 621-compliant :file:`pyproject.toml`. (#2860)
Dirk Mueller (dirkmueller)
committed
(revision 40)
Dirk Mueller (dirkmueller)
committed
(revision 39)
- update to 0.23.1: * Don't crash on import in Anaconda interpreters. * Add type hints. * When exiting a nursery block, the parent task always waits for child tasks to exit. This wait cannot be cancelled. However, previously, if you tried to cancel it, it *would* inject a `Cancelled` exception, even though it wasn't cancelled. Most users probably never noticed either way, but injecting a `Cancelled` here is not really useful, and in some rare cases caused confusion or problems, so Trio no longer does that. * If called from a thread spawned by `trio.to_thread.run_sync`, `trio.from_thread.run` and `trio.from_thread.run_sync` now reuse the task and cancellation status of the host task; * this means that context variables and cancel scopes naturally propagate 'through' threads spawned by Trio. You can also use `trio.from_thread.check_cancelled` to efficiently check for cancellation without reentering the Trio thread. * :func:`trio.lowlevel.start_guest_run` now does a bit more setup of the guest run before it returns to its caller, so that the caller can immediately make calls to :func:`trio.current_time`, :func:`trio.lowlevel.spawn_system_task`, :func:`trio.lowlevel.current_trio_token`, etc. * When a starting function raises before calling :func:`trio.TaskStatus.started`, :func:`trio.Nursery.start` will no longer wrap the exception in an undocumented :exc:`ExceptionGroup`. * To better reflect the underlying thread handling semantics, the keyword argument for `trio.to_thread.run_sync` that was
Matej Cepl (mcepl)
committed
(revision 38)
- Update to 0.22.2: * Fix PermissionError when importing trio due to trying to access pthread. * Breaking change: Timeout functions now raise ValueError if passed math.nan. This includes trio.sleep, trio.sleep_until, trio.move_on_at, trio.move_on_after, trio.fail_at and trio.fail_after. * Added support for naming threads created with trio.to_thread.run_sync, requires pthreads so is only available on POSIX platforms with glibc installed. * trio.socket.socket now prints the address it tried to connect to upon failure. * Fixed a crash that can occur when running Trio within an embedded Python interpreter, by handling the TypeError that is raised when trying to (re-)install a C signal handler. * Fix sniffio.current_async_library() when Trio tasks are spawned from a non-Trio context (such as when using trio-asyncio). Previously, a regular Trio task would inherit the non-Trio library name, and spawning a system task would cause the non-Trio caller to start thinking it was Trio. * Documented that Nursery.start_soon does not guarantee task ordering.
buildservice-autocommit
accepted
request 1112325
from
Dirk Mueller (dirkmueller)
(revision 37)
baserev update by copy to link target
Dirk Mueller (dirkmueller)
committed
(revision 36)
- remove buildrequires that are not used on sle15 * If you want to use Trio, but are stuck with some other event loop memory channels slightly smaller and faster.
buildservice-autocommit
accepted
request 1081734
from
Dirk Mueller (dirkmueller)
(revision 35)
baserev update by copy to link target
Dirk Mueller (dirkmueller)
accepted
request 1081672
from
Dirk Mueller (dirkmueller)
(revision 34)
SR for python stack proposal
buildservice-autocommit
accepted
request 1045129
from
Matej Cepl (mcepl)
(revision 33)
baserev update by copy to link target
Matej Cepl (mcepl)
accepted
request 1045068
from
Benjamin Greiner (bnavigator)
(revision 32)
- Try again with 0.22.0 and a fixed httpcore - go back to 0.21.0 as it breaks httpcore
Dirk Mueller (dirkmueller)
committed
(revision 31)
- go back to 0.21.0 as it breaks httpcore
Dirk Mueller (dirkmueller)
committed
(revision 30)
Markéta Machová (mcalabkova)
accepted
request 1042681
from
Markéta Machová (mcalabkova)
(revision 29)
require exceptiongroup in runtime
Daniel Garcia (dgarcia)
committed
(revision 28)
- Update to 0.22.0: * MultiError has been deprecated in favor of the standard BaseExceptionGroup (introduced in PEP 654). On Python versions below 3.11, this exception and its derivative ExceptionGroup are provided by the backport. Trio still raises MultiError, but it has been refactored into a subclass of BaseExceptionGroup which users should catch instead of MultiError. Uses of the MultiError.filter() class method should be replaced with BaseExceptionGroup.split(). Uses of the MultiError.catch() class method should be replaced with either except* clauses (on Python 3.11+) or the exceptiongroup.catch() context manager provided by the backport. See the updated documentation for details. # Features * Added support for Datagram TLS, for secure communication over UDP. Currently requires PyOpenSSL. (#2010)
buildservice-autocommit
accepted
request 1037176
from
Matej Cepl (mcepl)
(revision 27)
baserev update by copy to link target
Displaying revisions 1 - 20 of 46