I'm using Cython to speed up a function that operates over a string (unicode, CPython 3.6).
How do I call CPython's Py_UCS4 val = PyUnicode_READ_CHAR(my_string, my_index) from my Cython .pyx code? I cannot figure out the correct way to import and use the C-API from Cython.
Thanks!