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/2002-April/023557.html below:

[Python-Dev] pep 279 rehashed

[Python-Dev] pep 279 rehashedIan Kjos ikjos@email.uophx.edu
Wed, 24 Apr 2002 15:40:51 -0500
/me attempts to avoid HTML-mail.

+1 for numer() in the short run, but I don't know if I get a vote yet.

I don't know if it's too late yet, but what PEP 279 really seems to want is
iterator comprehensions. I have wanted those myself for a bit of a while. If
nobody minds, how about these classes:

Counter -> iterator over unbounded arithmetic sequence, with specified start
and optional arbitrary step.

IterComp -> convert a transform function, a list of iterators and an
optional selection function into a new lazy iterator, using
comprehension-type semantics. Expect frequent use of lambdas.

Wait! Isn't this just like programming with streams? Is there room in the
python model for an explicit stream type? (Yes, it's called a generator.
Perhaps we should just use those wisely.)








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