pyrex

Are Python extensions produced by Cython/Pyrex threadsafe?

If not, is there a way I can guarantee thread safety by programming a certain way? To clarify, when talking about "threadsafe,' I mean Python threads, not OS-level threads. ...

How to define initialized C-array in the Pyrex?

I want to define initialized C-array in Pyrex, e.g. equivalent of: unsigned char a[8] = {0,1,2,3,4,5,6,7}; What will be equivalent in Pyrex? Just array is cdef unsigned char a[8] But how can I made it initialized with my values? ...