[Pyrex] working with python types.
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue May 27 00:33:24 CEST 2003
Hunter Peress <hfastjava at yahoo.com> wrote:
> I wrote a C module without pyrex, and one of the key features is
> that the code works on python sequence types: thus it can process
> lists AND strings.
>
> how could I accomplish this with pyrex ?
Use a normal Python for-loop. Pyrex's for-loop uses the
iterator protocol, just like Python's.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list