[Python-Dev] bool(iter([])) changed between 2.3 and 2.4

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Sep 23 03:34:32 CEST 2005


Jim Jewett wrote:

> "Is there anything left?" is a pretty analogy for iterators,
> particularly since the examples tend to start with list
> or file iterators.

But this can't be supported by all iterators, so it would
be something special to these iterators.

Keeping track of the peculiarities of iterators associated
with particular types is too much to fit in my brain. I'd
rather they all had the same interface.

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


More information about the Python-Dev mailing list