From 8856940cf2e82cb17db2b684cd5732fe658605ca Mon Sep 17 00:00:00 2001 From: UltimateCoder Date: Wed, 3 May 2017 22:16:45 +0530 Subject: bpo-28315: Improve code examples in docs (GH-1372) Replace File "", line 1, in ? with File "", line 1, in --- Doc/howto/functional.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Doc/howto') diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 8ae9679894..a82dca7077 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -210,7 +210,7 @@ You can experiment with the iteration interface manually: 3 >>> next(it) Traceback (most recent call last): - File "", line 1, in ? + File "", line 1, in StopIteration >>> @@ -474,7 +474,7 @@ Here's a sample usage of the ``generate_ints()`` generator: 2 >>> next(gen) Traceback (most recent call last): - File "stdin", line 1, in ? + File "stdin", line 1, in File "stdin", line 2, in generate_ints StopIteration @@ -577,7 +577,7 @@ And here's an example of changing the counter: 9 >>> next(it) #doctest: +SKIP Traceback (most recent call last): - File "t.py", line 15, in ? + File "t.py", line 15, in it.next() StopIteration -- cgit v1.2.1