0

It is known for a while that Cython is a great way to improve pythons' speed. In addition, few efficient libraries use Cython to do so.

One of them is called 'uvloop'. However, when I looked at their source code, I saw that most of it uses the "cdef" keyword - which I think means that you can't access the code from python-only code.

I'm Almost for sure that 'uvloop' it is accessible from pure python code, so what is going on? It is possible or not to build a library that would be accessible for python clients and it's even worth it?

Thanks.

dangee1705
  • 3,445
  • 1
  • 21
  • 40
  • You cannot use cdef directly from python, but you could use the functionality through wrappers (for example cpdef-functions). – ead Mar 25 '20 at 14:33
  • So how uvloop uses it? –  Mar 25 '20 at 20:27

0 Answers0