tractor/tractor
Tyler Goodlet 5d1eab0025 Draft some eg collapsing helpers
Inside a new `.trionics._beg` and exposed from the subpkg ns in
anticipation of the `strict_exception_groups=False` being removed by
`trio` in py 3.15.

Notes,
- mk an embedded single-exc "extractor" using a `BaseExceptionGroup.exceptions` length
  check, when 1 return the lone child.
- use the above in a new `@acm`, async bc it's most likely to be composed in an
  `async with` tuple-style sequence block, called `collapse_eg()` which
  acts a one line "absorber" for when the above mentioned flag is no
  logner supported by `trio.open_nursery()`.

All untested atm fwiw.. but soon to be used in our test suite(s) likely!
2025-03-10 12:17:53 -04:00
..
_testing Disable tb colors in `._testing.mk_cmd()` 2025-03-10 12:17:53 -04:00
devx Handle egs on failed `request_root_stdio_lock()` 2025-03-10 12:17:53 -04:00
experimental Drop now-deprecated deps on modern `trio`/Python 2024-03-13 18:41:24 -04:00
msg Fix `roundtripped` ref error in `validate_payload_msg()` 2025-03-10 12:17:53 -04:00
trionics Draft some eg collapsing helpers 2025-03-10 12:17:53 -04:00
__init__.py Expose `._state.debug_mode()` predicate at top level 2025-03-10 12:17:53 -04:00
_child.py Hide `._entry`/`._child` frames, tweak some more type annots 2024-04-14 17:49:18 -04:00
_clustering.py Clean up some imports in `._clustering` 2025-03-10 12:17:53 -04:00
_context.py Log format tweaks for sclang reprs 2025-03-10 12:17:53 -04:00
_discovery.py Finally implement peer-lookup optimization.. 2024-07-04 19:40:11 -04:00
_entry.py Log format tweaks for sclang reprs 2025-03-10 12:17:53 -04:00
_exceptions.py Add equiv of `AsyncioCancelled` for aio side 2025-03-10 12:17:53 -04:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_ipc.py Moar sclang log fmting tweaks 2025-03-10 12:17:53 -04:00
_mp_fixup_main.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_multiaddr.py Fix doc string "its" typo.. 2023-11-06 15:44:21 -05:00
_portal.py A couple more loose-egs flag flips 2025-03-10 12:17:53 -04:00
_root.py Expose `hide_tb: bool` from `.open_nursery()` 2025-03-10 12:17:53 -04:00
_rpc.py Moar sclang log fmting tweaks 2025-03-10 12:17:53 -04:00
_runtime.py Go to loose egs in `Actor` root & service nurseries (for now..) 2025-03-10 12:17:53 -04:00
_shm.py Drop now-deprecated deps on modern `trio`/Python 2024-03-13 18:41:24 -04:00
_spawn.py Log format tweaks for sclang reprs 2025-03-10 12:17:53 -04:00
_state.py Moar sclang log fmting tweaks 2025-03-10 12:17:53 -04:00
_streaming.py Moar sclang log fmting tweaks 2025-03-10 12:17:53 -04:00
_supervise.py Hide `open_nursery()` frame by def 2025-03-10 12:17:53 -04:00
log.py Support passing pre-conf-ed `Logger` 2025-03-10 12:04:51 -04:00
to_asyncio.py Add per-side graceful-exit/cancel excs-as-signals 2025-03-10 12:17:53 -04:00