https://github.com/python/cpython/commit/f5ec90d79e108e588a942ea5bfe4f479b2ec382d commit: f5ec90d79e108e588a942ea5bfe4f479b2ec382d branch: main author: Faris Basha TM <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-11-18T09:03:51Z summary:
gh-103484: Remove an outdated footnote in the `unittest.mock` examples (#162166) Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/library/unittest.mock-examples.rst diff --git a/Doc/library/unittest.mock-examples.rst b/Doc/library/unittest.mock-examples.rst index da57f05edcf78f..7b736b5aecb641 100644 --- a/Doc/library/unittest.mock-examples.rst +++ b/Doc/library/unittest.mock-examples.rst @@ -642,7 +642,7 @@ Mocking a generator method ~~~~~~~~~~~~~~~~~~~~~~~~~~ A Python generator is a function or method that uses the :keyword:`yield` statement -to return a series of values when iterated over [#]_. +to return a series of values when iterated over. A generator method / function is called to return the generator object. It is the generator object that is then iterated over. The protocol method for @@ -671,12 +671,6 @@ To configure the values returned from the iteration (implicit in the call to >>> list(mock_foo.iter()) [1, 2, 3] -.. [#] There are also generator expressions and more `advanced uses - <http://www.dabeaz.com/coroutines/index.html>`_ of generators, but we aren't - concerned about them here. A very good introduction to generators and how - powerful they are is: `Generator Tricks for Systems Programmers - <http://www.dabeaz.com/generators/>`_. - Applying the same patch to every test method ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
