summaryrefslogtreecommitdiffstats
path: root/Doc/howto/functional.rst
diff options
context:
space:
mode:
authorUltimateCoder <jaysinhp@gmail.com>2017-05-03 16:46:45 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-05-03 16:46:45 (GMT)
commit8856940cf2e82cb17db2b684cd5732fe658605ca (patch)
treeb185e240823e78a7b5b3829185140b0f18da1509 /Doc/howto/functional.rst
parenta5c62a8e9f0de6c4133825a5710984a3cd5e102b (diff)
downloadcpython-8856940cf2e82cb17db2b684cd5732fe658605ca.zip
cpython-8856940cf2e82cb17db2b684cd5732fe658605ca.tar.gz
cpython-8856940cf2e82cb17db2b684cd5732fe658605ca.tar.bz2
bpo-28315: Improve code examples in docs (GH-1372)
Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
Diffstat (limited to 'Doc/howto/functional.rst')
-rw-r--r--Doc/howto/functional.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst
index 8ae9679..a82dca7 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 "<stdin>", line 1, in ?
+ File "<stdin>", line 1, in <module>
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 <module>
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 <module>
it.next()
StopIteration