Skip to content

Commit a10246e

Browse files
committed
Merge pull request yasoob#57 from cclauss/patch-2
Simplified wording around the standard library
2 parents af2fb6b + 1326f18 commit a10246e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

generators.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ simple example of a ``generator`` function:
7373
It is not really useful in this case. Generators are best for
7474
calculating large sets of results (particularly calculations involving
7575
loops themselves) where you don't want to allocate the memory for all
76-
results at the same time. Python modified a lot of Python 2 functions
77-
which returned ``lists`` to return ``generators`` in Python 3. It is
78-
because ``generators`` are not resource intensive. Here is an example
79-
which calculates fibonacci numbers:
76+
results at the same time. Many Standard Library functions that return
77+
``lists`` in Python 2 have been modified to return ``generators`` in
78+
Python 3 because ``generators`` require fewer resources.
79+
80+
Here is an example ``generator`` which calculates fibonacci numbers:
8081

8182
.. code:: python
8283

0 commit comments

Comments
 (0)