mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-28315: Improve code examples in docs (GH-1372)
Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
This commit is contained in:
parent
a5c62a8e9f
commit
8856940cf2
12 changed files with 30 additions and 30 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue