diff options
author | Georg Brandl <georg@python.org> | 2008-03-22 13:07:06 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-22 13:07:06 (GMT) |
commit | 838b4b01454c367cc87feb57ad65d7b90a756c03 (patch) | |
tree | f8edc8350a55cda1408e3d2d777c330d4ab3b7ce /Doc/howto | |
parent | 473f1642a4760445aa7344e0f235d0412d6ece1f (diff) | |
download | cpython-838b4b01454c367cc87feb57ad65d7b90a756c03.zip cpython-838b4b01454c367cc87feb57ad65d7b90a756c03.tar.gz cpython-838b4b01454c367cc87feb57ad65d7b90a756c03.tar.bz2 |
No need to specify explicit "doctest_block" anymore.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/functional.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 2424c6f..792344d 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -450,7 +450,7 @@ is what generators provide; they can be thought of as resumable functions. Here's the simplest example of a generator function: -.. testcode:: doctest_block +.. testcode:: def generate_ints(N): for i in range(N): @@ -560,7 +560,7 @@ returns ``None``. Here's a simple counter that increments by 1 and allows changing the value of the internal counter. -.. testcode:: doctest_block +.. testcode:: def counter (maximum): i = 0 |