tags:

views:

72

answers:

1

What is the best way of using C++ standard std::string from cython? The last cython distribution should make it easy anyway, but I wonder why there are wrappers for std::vector and not for std::string...

+1  A: 

Oops, this question has been hanging here for a few days now. At the end I did this:

cdef extern from "string" namespace "std":
    cdef cppclass string:
        char* c_str()

which is not a complete solution but still it does the thing.

dignor.sign