Skip to content

Commit 5e227c1

Browse files
committed
Drop the generator tutorials footnote
1 parent a69f72b commit 5e227c1

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎Doc/library/unittest.mock-examples.rst‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ Mocking a generator method
642642
~~~~~~~~~~~~~~~~~~~~~~~~~~
643643

644644
A Python generator is a function or method that uses the :keyword:`yield` statement
645-
to return a series of values when iterated over [#]_.
645+
to return a series of values when iterated over.
646646

647647
A generator method / function is called to return the generator object. It is
648648
the generator object that is then iterated over. The protocol method for
@@ -671,14 +671,6 @@ To configure the values returned from the iteration (implicit in the call to
671671
>>> list(mock_foo.iter())
672672
[1, 2, 3]
673673

674-
.. [#] There are also generator expressions and more `advanced uses
675-
<https://www.dabeaz.com/tutorials.html#curious-course-coroutines>`_ of
676-
generators, but we aren't concerned about them here. A very good
677-
introduction to generators and how powerful they are is: `Generator Tricks
678-
for Systems Programmers
679-
<https://www.dabeaz.com/tutorials.html#generator-tricks-for-systems-programmers>`_.
680-
681-
682674
Applying the same patch to every test method
683675
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
684676

0 commit comments

Comments
 (0)