[Pyrex] nagging differences / implementing generators

Greg Ewing greg at cosc.canterbury.ac.nz
Fri May 7 04:48:06 CEST 2004


Bob Ippolito <bob at redivi.com>:

> You also have to capture the local variables of the function and put 
> them all on the heap...

They would become C attributes of the behind-the-scenes extension type
being used to implement the generator-iterator.

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