File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ Point(x=1, y=2)
179
179
Iterator
180
180
--------
181
181
``` python
182
- < iter > = iter (< collection> )
182
+ < iter > = iter (< collection> ) # Calling `iter(<iter>)` returns unmodified iterator.
183
183
< iter > = iter (< function> , to_exclusive) # Sequence of return values until 'to_exclusive'.
184
184
< el> = next (< iter > [, default]) # Raises StopIteration or returns 'default' on end.
185
185
```
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ <h2 id="namedtuple"><a href="#namedtuple" name="namedtuple">#</a>Named Tuple</h2
320
320
(< span class ="hljs-string "> 'x'</ span > , < span class ="hljs-string "> 'y'</ span > )
321
321
</ code > </ pre >
322
322
< h2 id ="iterator "> < a href ="#iterator " name ="iterator "> #</ a > Iterator</ h2 >
323
- < pre > < code class ="python language-python hljs "> <iter> = iter(<collection>)
323
+ < pre > < code class ="python language-python hljs "> <iter> = iter(<collection>) < span class =" hljs-comment " > # Calling `iter(<iter>)` returns unmodified iterator. </ span >
324
324
<iter> = iter(<function>, to_exclusive) < span class ="hljs-comment "> # Sequence of return values until 'to_exclusive'.</ span >
325
325
<el> = next(<iter> [, default]) < span class ="hljs-comment "> # Raises StopIteration or returns 'default' on end.</ span >
326
326
</ code > </ pre >
You can’t perform that action at this time.
0 commit comments