colesbury / nogil

Multithreaded Python without the GIL
Other
2.91k stars 107 forks source link

Greenlets and nogil #109

Open mrsipan opened 1 year ago

mrsipan commented 1 year ago

Can coroutine-based Python networking library that uses greenlets (such as gevent and eventlet) be used with nogil?

colesbury commented 1 year ago

Hi @mrsipan, greenlets doesn't currently work with nogil, but the immediate reason is minor and might be easy to fix (an unintentional name conflict in a C header file.) I'll look into fixing it in the next few days.

colesbury commented 1 year ago

Ok, there are additional issues that are harder to fix: greenlets depends on details of PyFrameObject that have changed. I'm not sure when I'll have time to investigate them.