[Python-Dev] Single- vs. Multi-pass iterability

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 18 Jul 2002 11:18:28 +1200 (NZST)


Guido:
> - The mapping between the next() method and the tp_iternext slot in
>   the type object would disappear, and instead the __next__() method
>   would be mapped to this slot.

For what it's worth, I took it upon myself to "fix"
this already in Pyrex extension types. So if you make 
this change, you'll be making Python more compatible
with Pyrex. :-)

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+