Max Ivanov wrote:
>>1) You want to use char* because it is feels "faster" than Python
>>objects:
> 
> That was the reason
> 
>>No, you're better off with Python objects, char* is
>>fundamentally something different.
> 
> And this is the answer.

Yep. You have to allocate memory for the string one
way or another, so you might as well let Python manage
the details for you. Note that you can get direct access
to the chars inside a Python string any time you want
at no extra cost.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to