Matthias Urlichs
Matthias Urlichs
Huh. Guest mode on top of asyncio should be easy enough. The interesting bit is whether we can do it without a separate OS thread.
This effort should be restarted, because as it is anyio is no longer compatible with Trio master. ``` ______________________________________ test_multi_error_host[trio] ______________________________________ anyio/_backends/_trio.py:121: in __aexit__ return await self._nursery_manager.__aexit__(exc_type, exc_val, exc_tb) ../trio/trio/_core/_run.py:725:...
@apexo You still can't leave the party. You (as the "host", i.e. the nursery's initial task) can just decide to do your own thing while the party is ongoing, just...
Personally: when I came across this nursery thing, I thought, OK, new name, new concept I actually need to think about instead of assuming that I already know what it's...
My problem with `splitpoint` or similar pointy names is that a point, conceptually, is *just there*. Like in geometry, it doesn't *do* anything. My personal favorite still is a task...
Well, in geometry you (mostly) don't just arbitrarily draw a point – the point exists as a consequence of something else (like two lines intersecting). Afterwards, other things exist as...
Another idea, see https://gitter.im/python-trio/general?at=5c4b3e3e20b78635b67fa78e Basically this would allow you to call `.start_soon(fn, *args, **kwargs)` or `.start_soon(**start_soon_options)(fn, *args, **kwargs)`, which is syntactically as minimal as you can get
Meh. I still think that `nursery.start_soon.mod(name="foo")(fn, *args, **kwargs)` would work best ("mod" being the shortest name I could think of that still means something reasonable) given that `nursery.start_soon(name="foo")(fn, *args, **kwargs)`...
Hmm, I'd call this function `changed_context` so that the `with` statement reads like a reasonable English phrase.
The trio-ish way would not use a `done` callback. Instead, the `deframe` method would be an async iterator, thus it would say `yield frame` instead of `self.done(frame)`, and the caller...