diff options
author | UltimateCoder <jaysinhp@gmail.com> | 2017-05-03 16:46:45 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-05-03 16:46:45 (GMT) |
commit | 8856940cf2e82cb17db2b684cd5732fe658605ca (patch) | |
tree | b185e240823e78a7b5b3829185140b0f18da1509 /Doc/tutorial/datastructures.rst | |
parent | a5c62a8e9f0de6c4133825a5710984a3cd5e102b (diff) | |
download | cpython-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/tutorial/datastructures.rst')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 74a1ee7..62be9a0 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -261,7 +261,7 @@ it must be parenthesized. :: [(0, 0), (1, 1), (2, 4), (3, 9), (4, 16), (5, 25)] >>> # the tuple must be parenthesized, otherwise an error is raised >>> [x, x**2 for x in range(6)] - File "<stdin>", line 1, in ? + File "<stdin>", line 1, in <module> [x, x**2 for x in range(6)] ^ SyntaxError: invalid syntax |