[Pyrex] Speeding up custom string lowercasing with Pyrex

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 31 23:11:39 CET 2007


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.

--
Greg



More information about the Pyrex mailing list