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

Alex Martelli aleax@aleax.it
Mon, 15 Jul 2002 21:04:59 +0200


On Monday 15 July 2002 04:39 pm, Guido van Rossum wrote:
	...
> Maybe the xreadlines object could grow a flush() method that throws
> away its buffer, and f.seek() could call that if there's a cached
> xreadlines iterator?

Couldn't f.seek just decref the xreadlines object and put a NULL
into f's pointer to the xreadlines object?


Alex