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-March/013957.html below:

[Python-Dev] Simple generators, round 2

[Python-Dev] Simple generators, round 2 [Python-Dev] Simple generators, round 2Neil Schemenauer nas@python.ca
Mon, 26 Mar 2001 20:43:33 -0800
Tim Peters wrote:
> My belief is that generators don't become *truly* pleasant
> unless "yield" ("suspend"; whatever) is made a new statement
> type.

That's fine but how do you create a generator?  I suspose that
using a "yield" statement within a function could make it into a
generator.   Then, calling it would create an instance of a
generator.  Seems a bit too magical to me.

  Neil



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