Passing cython function to cython function
I have a Cython function where I would like to pass in a serialization
function as a parameter:
cdef my_serializer(serialization_func, data):
return serialization_func.dumps(data)
All the serializers I'm going to be dealing with (msgpack, ujson) are also
C/cython functions. What's the proper way to declare serialization_func so
Cython can do early binding?
No comments:
Post a Comment