A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-July/016430.html below:

[Python-Dev] Iterator addition?

[Python-Dev] Iterator addition? [Python-Dev] Iterator addition?Greg Ewing greg@cosc.canterbury.ac.nz
Tue, 31 Jul 2001 10:05:22 +1200 (NZST)
Guido:

> The *only* thing that iterators and sequences have in common is that
> they can be iterated over.  So they are substitutable in all context
> where that's all you do -- including sequence (not tuple!) unpacking.
> And not in any other contexts.

I agree. The more special cases we add to try to make
iterators look like sequences, the harder it's going to
be to remember what you can and can't do with an iterator.
Let's keep it as simple as possible.

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	   +--------------------------------------+



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4