tractor/tractor
Gud Boi 8215a7ba34 Hide private fields in `Struct.pformat()` output
Skip fields starting with `_` in pretty-printed struct output
to avoid cluttering displays with internal/private state (and/or accessing
private properties which have errors Bp).

Deats,
- add `if k[0] == '_': continue` check to skip private fields
- change nested `if isinstance(v, Struct)` to `elif` since we
  now have early-continue for private fields
- mv `else:` comment to clarify it handles top-level fields
- fix indentation of `yield` statement to only output
  non-private, non-nested fields

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-03-10 00:33:32 -04:00
..
_testing Mk `.devx._debug` a sub-pkg `.devx.debug` 2025-07-14 00:00:12 -04:00
devx Add prompt flush hack for `bash` on macos as well.. 2026-03-08 19:17:16 -04:00
experimental Add API-modernize-todo on `experimental._pubsub.fan_out_to_ctxs` 2025-07-08 18:05:05 -04:00
ipc Warn if `.ipc._uds.get_peer_pid()` returns null 2026-03-08 19:17:16 -04:00
msg Hide private fields in `Struct.pformat()` output 2026-03-10 00:33:32 -04:00
trionics Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
__init__.py move tractor._ipc.py into tractor.ipc._chan.py 2025-07-08 12:57:28 -04:00
_addr.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_child.py Adjust `._child` instantiation of `Actor` to use newly named `uuid` arg 2025-07-08 12:57:28 -04:00
_clustering.py Fix cluster suite, chng to new `gather_contexts()` 2025-08-18 10:46:37 -04:00
_code_load.py Mv `load_module_from_path()` to a new `._code_load` submod 2026-02-11 21:03:29 -05:00
_context.py Drop `trio`-exc-catching if tpt-closed covers them 2026-02-19 13:55:02 -05:00
_discovery.py Add doc-strs to `get_root()` + `maybe_open_portal()` 2026-02-19 13:55:02 -05:00
_entry.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_exceptions.py Move `.is_multi_cancelled()` to `.trioniics._beg` 2025-07-16 15:49:18 -04:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05: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.. 2025-03-20 19:50:31 -04:00
_portal.py Drop `trio`-exc-catching if tpt-closed covers them 2026-02-19 13:55:02 -05:00
_root.py Stuff from auto-review in https://github.com/goodboy/tractor/pull/412 .. 2026-02-19 16:20:21 -05:00
_rpc.py Less newlines in `._rpc` log msg 2026-02-19 16:31:54 -05:00
_runtime.py Add `Actor.is_root()` convenience predicate meth 2026-02-19 13:55:02 -05:00
_spawn.py Add attempt at non-root-parent REPL guarding 2025-08-19 14:15:14 -04:00
_state.py Slight refinements to `._state.get_rt_dir()` 2026-03-08 19:17:16 -04:00
_streaming.py Drop `trio`-exc-catching if tpt-closed covers them 2026-02-19 13:55:02 -05:00
_supervise.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
log.py Cleaups per copilot PR review 2026-02-11 21:51:40 -05:00
to_asyncio.py Use bare `get_logger()` in `.to_asyncio` 2026-02-11 22:02:41 -05:00