[Pyrex] Speeding up custom string lowercasing with Pyrex
Francesc Altet
faltet at carabos.com
Thu Nov 1 11:41:46 CET 2007
A Wednesday 31 October 2007, Greg Ewing escrigué:
> Francesc Altet wrote:
> > cdef char *toc
> > cdef object to
> > ...
> > toc = PyString_AsString(to) # get the pointer to the string
>
> Just doing
>
> toc = to
>
> in this context has the same effect.
True. Awesome!
--
>0,0< Francesc Altet http://www.carabos.com/
V V Cárabos Coop. V. Enjoy Data
"-"
More information about the Pyrex
mailing list