A5rocks
A5rocks
> but don't actually push that frame when the coroutine runs Should this be raised as a Cython bug? (I know that doesn't help us in the meanwhile but having...
I think detecting Cython functions and wrapping then would ultimately be simpler and that's better. > We could have two async wrappers for cython, one protected and one unprotected, and...
OK so looking at this more, in general `sys._getframe` doesn't get the frame for any given cython function, sync or async: `hello.pyx`: ```pyx import sys def synctest(): print(sys._getframe(0)) def synctestwrapper():...
This doesn't need to be the fastest and [`getcoroutinestate()`](https://github.com/python/cpython/blob/33b790978d8b817a66a4a117a8c38a857b6103f0/Lib/inspect.py#L1797) seems to check booleans stored on the coroutine. I would prefer an enum over two methods because otherwise we can represent...
According to [mypy-issues](https://github.com/A5rocks/mypy-issues), this also fixes: - https://github.com/python/mypy/issues/15040 - https://github.com/python/mypy/issues/14818 - https://github.com/python/mypy/issues/17213 - potentially https://github.com/python/mypy/issues/14182 (definitely the followup comments, but I didn't try reproducing the initial comment) It seems to...
> I'm also not sure if it's possible to learn the commit ID's before merging such that you can actually add a PR to the file before it gets merged....
Hi @kachida any progress? If not, would you mind un-assigning yourself? You should be able to re-assign yourself whenever you have the time and want to fix this issue.
I'm not sure how I feel about adding a keyword argument to `trio.Lock`. Does `trio.Semaphore` with a limit of `1` really have differences other than this? I like that `trio.Lock`...
I agree; `BrokenResourceError` (or `RuntimeError` if we want) is better than a deadlock. Though I think that if a lock gets acquired and never released, but nobody else wants it,...
I think better than a parent nursery check is just checking if the task is running. But yeah I'm not sure how to handle the other cases. Should there be...