hpyproject / hpy

HPy: a better API for Python
https://hpyproject.org
MIT License
1.02k stars 52 forks source link

Debug context: check that HPy API is accessed only from Python threads #437

Open steve-s opened 1 year ago

steve-s commented 1 year ago

Possible implementation: store thread ID in the debug context just before calling extension function, and check it on every API call.

Caveats: