Lisandro Dalcin wrote:

> Sorry, Greg, I got lost. It seems I still have things to learn in Py3.
> How do you avoid the memory allocation in the case of UTF-8 ?

I haven't looked in detail, but I believe that the str object
is able to hold a cached encoding of itself in utf8, so the
conversion could just return a pointer to that.

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

Reply via email to