Vincent Michel

Results 75 comments of Vincent Michel

@smurfix > Hmm. I think you're conflating two orthogonal tasks here: > - detect a deadlock > - add a timeout to a task I would argue that there are...

> Yeah, that's one of the problems with asyncio's Futures. There seems to be a misunderstanding, I was actually talking about `concurrent.futures.Future` and not `asyncio.Future`. I fully agree that trio...

@smurfix > In this case you can create a concurrent.futures.Future like this: [...] Great idea, it's easy to implement and covers most use cases I listed in [my comment](https://github.com/python-trio/trio/issues/2114#issuecomment-911740622) earlier...

@smurfix Great, thanks for the suggestions :)

@smurfix > One warning: there's an open Python bug (filed by me, otherwise untouched so far) where Python does a syscall without releasing the GIL, which would deadlock your program...

> I'm a bit confused that when a comment here finally noted that function, it was only a passing mention like it was a small detail, when it's really the...

For the record, an alternative to the `py.run!` solution is: ```rust #[pymodule] fn supermodule(py: Python, m: &PyModule) -> PyResult { module.add_wrapped(wrap_pymodule!(submodule))?; py.import("sys")? .getattr("modules")? .set_item("supermodule.submodule", submodule)?; Ok(()) } ```

Here is a small example to reproduce this issue: ``` python import asyncio from aiozmq import rpc async def client(): client = await rpc.connect_rpc( connect='tcp://127.0.0.1:5555', timeout=1) return await client.call.some_function() loop...

@mentaal I simply used `htop`: ``` PID PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 5608 20 0 250M 20532 9592 S 0.4 0.5 0:00.24 │ │ └─...

@ap-- I got a raspberry pie 1 and I'd like to try building a conda package for it. Could you please share the recipe you used for `armv7l`?