Meta: PEP discussion (was Re: PEP 255: Simple Generators)
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Jun 26 23:20:13 EDT 2001
Tim Peters wrote:
>
> We didn't *have* to expose Python's generator-iterator object
> either
Out of curiosity, what would a Python generator implementation
look like that didn't expose generator-iterators? What would
happen if you called a generator outside of a for-loop
context?
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list