emmett-framework / granian

A Rust HTTP server for Python applications
BSD 3-Clause "New" or "Revised" License
2.86k stars 83 forks source link

Rust awaitables on PyPy are broken #120

Closed gi0baro closed 1 year ago

gi0baro commented 1 year ago

Both PyIterAwaitable and PyFutureAwaitable always returns None on PyPy after iteration. The actual result is properly set from Rust, in CPython everything works as expected.

gi0baro commented 1 year ago

This is confirmed to be a bug in PyO3, should be fixed by https://github.com/PyO3/pyo3/pull/3471