PEP 276 Simple Iterator for ints (fwd)

Greg Ewing greg at
Fri Nov 30 01:40:34 CET 2001

Jeff Shannon wrote:
> iterators and generators, anyhow.  If I have a generator that yields successive
> values read from a serial port device, then the phrase "if i in serialinput()"
> is meaningless

Maybe you should have to say "for i from iterator"
instead, when you have something that is already
an iterator.

Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:

More information about the Python-list mailing list